Modify

Opened 6 years ago

Closed 6 years ago

#6335 closed Bugs (fixed)

forming reference to void with allocator_traits

Reported by: Kohei Takahashi <flast@…> 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)

adjacency_list.hpp (106.4 KB) - added by jorgejgleandro@… 4 years ago.
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|"

Download all attachments as: .zip

Change History (3)

comment:1 Changed 6 years ago by Ion Gaztañaga

Thanks for the report. Fixed in trunk

comment:2 Changed 6 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

Merged to the release branch

Changed 4 years ago by jorgejgleandro@…

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|"

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.