Modify

Ticket #6335 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

forming reference to void with allocator_traits

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

adjacency_list.hpp Download (106.4 KB) - added by jorgejgleandro@… 6 months 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|"

Change History

comment:1 Changed 2 years ago by igaztanaga

Thanks for the report. Fixed in trunk

comment:2 Changed 2 years ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed

Merged to the release branch

Changed 6 months ago by jorgejgleandro@…

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.