Boost C++ Libraries: Ticket #10768: Changes to Optional cause compilation errors in adjacency_list/named_graph since 1.56.0 https://svn.boost.org/trac10/ticket/10768 <p> Getting this since 1.56.0, now using 1.57.0 and GCC 4.9.2 on Arch. Code had compiled fine for months. </p> <p> I never use anything from Optional in my code myself, nor does GCC mention any relevant lines in it, so I'm guessing the bug lies within boost. </p> <pre class="wiki">In file included from /usr/include/boost/optional.hpp:15:0, from /usr/include/boost/graph/named_graph.hpp:21, from /usr/include/boost/graph/adjacency_list.hpp:45, from ./Graph.h:6, /usr/include/boost/optional/optional.hpp:1062:33: error: macro "value_or" requires 2 arguments, but only 1 given value_type value_or ( U&amp;&amp; v ) const&amp; ^ /usr/include/boost/optional/optional.hpp:1071:33: error: macro "value_or" requires 2 arguments, but only 1 given value_type value_or ( U&amp;&amp; v ) &amp;&amp; </pre><p> This repeats wherever adjacency_list.hpp is included. For each of these I then also get later… </p> <pre class="wiki">/usr/include/boost/optional/optional.hpp:1062:35: error: expected initializer before ‘const’ value_type value_or ( U&amp;&amp; v ) const&amp; ^ /usr/include/boost/optional/optional.hpp:1071:35: error: expected initializer before ‘&amp;&amp;’ token value_type value_or ( U&amp;&amp; v ) &amp;&amp; </pre><p> … with again no further context. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10768 Trac 1.4.3 akrzemi1 Wed, 21 Jan 2015 14:09:41 GMT <link>https://svn.boost.org/trac10/ticket/10768#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10768#comment:1</guid> <description> <p> Would you mind attaching a full (short) example that demonstrates the problem? When I include adjacency_list.hpp, I do not get these messages. </p> </description> <category>Ticket</category> </item> <item> <author>tastky@…</author> <pubDate>Fri, 23 Jan 2015 14:08:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10768#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10768#comment:2</guid> <description> <p> Sorry for the noise, turned out to be a collision with another value_or from a different dependency (polylib). IOW, this bug is invalid. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>akrzemi1</dc:creator> <pubDate>Fri, 06 Mar 2015 15:17:22 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/10768#comment:3 https://svn.boost.org/trac10/ticket/10768#comment:3 <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">invalid</span> </li> </ul> Ticket