Boost C++ Libraries: Ticket #6772: Regression on Sandia-gcc-4.3.4_0x when refactoring base_from_member code for T&& https://svn.boost.org/trac10/ticket/6772 <p> Since the introduction of </p> <blockquote> <p> svn log boost/utility/base_from_member.hpp </p> </blockquote> <hr /> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/77046" title="Fixed (hopefully) conflict between boost::base_from_member's C++11 ...">r77046</a> | dlwalker | 2012-02-17 02:55:33 +0100 (Ven, 17 fév 2012) | 1 line </p> <p> Fixed (hopefully) conflict between boost::base_from_member's C++11 constructor template and the automatically defined non-template copy- and/or move-constructors. </p> <hr /> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/76982" title="Updated boost::base_from_member for C++2011.">r76982</a> | dlwalker | 2012-02-11 19:27:02 +0100 (Sam, 11 fév 2012) | 1 line </p> <p> Updated boost::base_from_member for C++2011. </p> <p> There is an error on </p> <pre class="wiki">Test output: Sandia-gcc-4.3.4_0x - format - format_test1 / gcc-4.3.4_0x Rev 77789 / Fri, 6 Apr 2012 05:57:33 +0000 Report Time: Fri, 6 Apr 2012 22:01:09 +0000 Compile [2012-04-06 07:43:02 UTC]: fail "/sierra/Sntools/extras/compilers/gcc-4.3.4/bin/g++" -ftemplate-depth-128 -std=gnu++0x -O0 -fno-inline -Wall -g -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_TEST_NO_AUTO_LINK=1 -I".." -c -o "/scratch/kbelco/boost/results/boost/bin.v2/libs/format/test/format_test1.test/gcc-4.3.4_0x/debug/format_test1.o" "../libs/format/test/format_test1.cpp" ../boost/utility/base_from_member.hpp: In constructor ???boost::base_from_member&lt;MemberType, UniqueID&gt;::base_from_member(T&amp;&amp; ...) [with T = boost::io::basic_altstringbuf&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;*&amp;, boost::io::basic_oaltstringstream&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::No_Op, EnableIf = void, MemberType = boost::shared_ptr&lt;boost::io::basic_altstringbuf&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, int UniqueID = 0]???: ../boost/format/alt_sstream.hpp:146: instantiated from ???boost::io::basic_oaltstringstream&lt;Ch, Tr, Alloc&gt;::basic_oaltstringstream(boost::io::basic_altstringbuf&lt;Ch, Tr, Alloc&gt;*) [with Ch = char, Tr = std::char_traits&lt;char&gt;, Alloc = std::allocator&lt;char&gt;]??? ../boost/format/feed_args.hpp:142: instantiated from ???void boost::io::detail::put(T, const boost::io::detail::format_item&lt;Ch, Tr, Alloc&gt;&amp;, typename boost::basic_format&lt;Ch, Tr, Alloc&gt;::string_type&amp;, typename boost::basic_format&lt;Ch, Tr, Alloc&gt;::internal_streambuf_t&amp;, boost::io::detail::locale_t*) [with Ch = char, Tr = std::char_traits&lt;char&gt;, Alloc = std::allocator&lt;char&gt;, T = const char (&amp;)[11]]??? ../boost/format/feed_args.hpp:253: instantiated from ???void boost::io::detail::distribute(boost::basic_format&lt;Ch, Tr, Alloc&gt;&amp;, T) [with Ch = char, Tr = std::char_traits&lt;char&gt;, Alloc = std::allocator&lt;char&gt;, T = const char (&amp;)[11]]??? ../boost/format/feed_args.hpp:263: instantiated from ???boost::basic_format&lt;Ch, Tr, Alloc&gt;&amp; boost::io::detail::feed(boost::basic_format&lt;Ch, Tr, Alloc&gt;&amp;, T) [with Ch = char, Tr = std::char_traits&lt;char&gt;, Alloc = std::allocator&lt;char&gt;, T = const char (&amp;)[11]]??? ../boost/format/format_class.hpp:64: instantiated from ???boost::basic_format&lt;Ch, Tr, Alloc&gt;&amp; boost::basic_format&lt;Ch, Tr, Alloc&gt;::operator%(const T&amp;) [with T = char [11], Ch = char, Tr = std::char_traits&lt;char&gt;, Alloc = std::allocator&lt;char&gt;]??? ../libs/format/test/format_test1.cpp:40: instantiated from here ../boost/utility/base_from_member.hpp:137: error: invalid static_cast from type ???boost::io::basic_altstringbuf&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;*??? to type ???T&amp;&amp;??? </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6772 Trac 1.4.3 viboes Sun, 03 Jun 2012 19:58:53 GMT summary changed https://svn.boost.org/trac10/ticket/6772#comment:1 https://svn.boost.org/trac10/ticket/6772#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">Regression on Sandia-gcc-4.3.4_0x when refactoring code for T&amp;&amp;</span> → <span class="trac-field-new">Regression on Sandia-gcc-4.3.4_0x when refactoring base_from_member code for T&amp;&amp;</span> </li> </ul> Ticket