Boost C++ Libraries: Ticket #6287: hardcoded fwd declarations don't work for gcc configured withor --enable-symvers=gnu-versioned-namespace https://svn.boost.org/trac10/ticket/6287 <p> hi, </p> <p> the --enable-symvers=gnu-versioned-namespace gcc's configure option introduces a new versioned std::<span class="underline">7:: namespace and all these hardcoded std:: forward declarations won't work. </span></p> <pre class="wiki">#include &lt;boost/interprocess/interprocess_fwd.hpp&gt; #include &lt;utility&gt; int main() {     std::pair&lt; int, int &gt; p; } </pre><p> $ /local/devel/toolchain46/x86_64-gnu-linux.host64/bin/x86_64-gnu-linux-g++  t.cpp -c -isystem /usr/include </p> <p> t.cpp: In function 'int main()': t.cpp:5:2: error: reference to 'pair' is ambiguous /usr/include/boost/interprocess/interprocess_fwd.hpp:47:8: error: candidates  are: template&lt;class T1, class T2&gt; struct std::pair /local/devel/toolchain46/x86_64-gnu-linux.host64/lib64/gcc/x86_64-gnu- linux/4.6.3/../../../../x86_64-gnu- linux/include/c++/4.6.3/bits/stl_pair.h:87:12: error:                  template&lt;class _T1, class _T2&gt; struct std::<span class="underline">7::pair t.cpp:5:13: error: expected primary-expression before 'int' t.cpp:5:13: error: expected ';' before 'int' </span></p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6287 Trac 1.4.3 Ion Gaztañaga Fri, 23 Dec 2011 12:03:01 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6287#comment:1 https://svn.boost.org/trac10/ticket/6287#comment:1 <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> Fixed in trunk at revision: 76114 </p> Ticket