[Boost-bugs] [Boost C++ Libraries] #6335: forming reference to void with allocator_traits

Subject: [Boost-bugs] [Boost C++ Libraries] #6335: forming reference to void with allocator_traits
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-30 13:46:16


#6335: forming reference to void with allocator_traits
----------------------------------------------+-----------------------------
 Reporter: Kohei Takahashi <flast@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: container
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
----------------------------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6335>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC