Boost C++ Libraries: Ticket #6335: forming reference to void with allocator_traits https://svn.boost.org/trac10/ticket/6335 <p> Testcase </p> <pre class="wiki">#include &lt;memory&gt; #include &lt;boost/container/allocator/allocator_traits.hpp&gt; boost::container::allocator_traits&lt;std::allocator&lt;void&gt; &gt; traits; </pre><p> GCC says following error. </p> <pre class="wiki">$ 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&lt;std::__7::allocator&lt;void&gt; &gt;': 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 </pre><p> std::allocator_traits accepts it. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6335 Trac 1.4.3 Ion Gaztañaga Fri, 30 Dec 2011 23:41:47 GMT <link>https://svn.boost.org/trac10/ticket/6335#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6335#comment:1</guid> <description> <p> Thanks for the report. Fixed in trunk </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Wed, 18 Jan 2012 20:52:07 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6335#comment:2 https://svn.boost.org/trac10/ticket/6335#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Merged to the release branch </p> Ticket jorgejgleandro@… Sat, 09 Nov 2013 11:28:04 GMT attachment set https://svn.boost.org/trac10/ticket/6335 https://svn.boost.org/trac10/ticket/6335 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">adjacency_list.hpp</span> </li> </ul> <p> 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|" </p> Ticket