Opened 11 years ago
Closed 11 years ago
#6335 closed Bugs (fixed)
forming reference to void with allocator_traits
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | container |
Version: | Boost 1.48.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Testcase
#include <memory> #include <boost/container/allocator/allocator_traits.hpp> boost::container::allocator_traits<std::allocator<void> > traits;
GCC says following error.
$ g++ test.cpp In file included from test.cpp:2:0: /usr/local/include/boost/container/allocator/allocator_traits.hpp: In instantiation of 'boost::container::allocator_traits<std::__7::allocator<void> >': test.cpp:4:59: instantiated from here /usr/local/include/boost/container/allocator/allocator_traits.hpp:128:13: error: forming reference to void /usr/local/include/boost/container/allocator/allocator_traits.hpp:132:16: error: forming reference to void
std::allocator_traits accepts it.
Attachments (1)
Change History (3)
comment:1 by , 11 years ago
by , 9 years ago
Attachment: | adjacency_list.hpp added |
---|
gcc says: "C:\boost\boost_1_55_0b1\boost\graph\detail\adjacency_list.hpp|2498|error: forming reference to void| C:\boost\boost_1_55_0b1\boost\graph\detail\adjacency_list.hpp|2499|error: forming reference to void| C:\boost\boost_1_55_0b1\boost\graph\detail\adjacency_list.hpp|2502|error: forming reference to void| C:\boost\boost_1_55_0b1\boost\graph\detail\adjacency_list.hpp|2504|error: forming reference to void|"
Note:
See TracTickets
for help on using tickets.
Thanks for the report. Fixed in trunk