Boost C++ Libraries: Ticket #5901: Suppressing warnings from Cray compiler https://svn.boost.org/trac10/ticket/5901 <p> While helping sort out Boost.Config support for the Cray compiler, this patch also came my way - it suppresses a bunch of warnings from the Cray compiler on account of macro continuation characters (\) not being on the end of the line: </p> <p> Index: repeat.hpp =================================================================== --- repeat.hpp (revision 74374) +++ repeat.hpp (working copy) @@ -105,21 +105,21 @@ </p> <blockquote> <p> <em> Generate BOOST_PROTO_MAX_ARITY-1 overloads of the </em> following construct() function template. </p> </blockquote> <p> -#define M0(N, typename_A, A_const_ref, A_const_ref_a, ref_a) \ -template&lt;typename T, typename_A(N)&gt; \ -typename proto::result_of::make_expr&lt; \ </p> <ul><li> proto::tag::function \ </li><li> , construct_helper&lt;T&gt; \ </li><li> , A_const_ref(N) \ </li></ul><p> -&gt;::type const \ -construct(A_const_ref_a(N)) \ -{ \ </p> <ul><li> return proto::make_expr&lt; \ </li><li> proto::tag::function \ </li><li> &gt;( \ </li><li> construct_helper&lt;T&gt;() \ </li><li> , ref_a(N) \ </li><li> ); \ </li></ul><p> +#define M0(N, typename_A, A_const_ref, A_const_ref_a, ref_a) \ +template&lt;typename T, typename_A(N)&gt; \ +typename proto::result_of::make_expr&lt; \ + proto::tag::function \ + , construct_helper&lt;T&gt; \ + , A_const_ref(N) \ +&gt;::type const \ +construct(A_const_ref_a(N)) \ +{ \ + return proto::make_expr&lt; \ + proto::tag::function \ + &gt;( \ + construct_helper&lt;T&gt;() \ + , ref_a(N) \ + ); \ </p> <blockquote> <p> } BOOST_PROTO_REPEAT_FROM_TO(1, BOOST_PROTO_MAX_ARITY, M0) #undef M0 </p> </blockquote> <p> @@ -215,22 +215,22 @@ </p> <blockquote> <p> <em> Generate BOOST_PROTO_MAX_ARITY-1 overloads of the </em> following construct() function template. </p> </blockquote> <p> -#define BOOST_PROTO_LOCAL_MACRO(N, typename_A, A_const_ref, \ </p> <ul><li> A_const_ref_a, ref_a) \ </li></ul><p> -template&lt;typename T, typename_A(N)&gt; \ -typename proto::result_of::make_expr&lt; \ </p> <ul><li> proto::tag::function \ </li><li> , construct_helper&lt;T&gt; \ </li><li> , A_const_ref(N) \ </li></ul><p> -&gt;::type const \ -construct(A_const_ref_a(N)) \ -{ \ +#define BOOST_PROTO_LOCAL_MACRO(N, typename_A, A_const_ref, \ + A_const_ref_a, ref_a) \ +template&lt;typename T, typename_A(N)&gt; \ +typename proto::result_of::make_expr&lt; \ + proto::tag::function \ + , construct_helper&lt;T&gt; \ + , A_const_ref(N) \ +&gt;::type const \ +construct(A_const_ref_a(N)) \ +{ \ </p> <blockquote> <p> return proto::make_expr&lt; \ </p> </blockquote> <ul><li> proto::tag::function \ </li><li> &gt;( \ </li><li> construct_helper&lt;T&gt;() \ </li><li> , ref_a(N) \ </li><li> ); \ </li></ul><p> + proto::tag::function \ + &gt;( \ + construct_helper&lt;T&gt;() \ + , ref_a(N) \ + ); \ </p> <blockquote> <p> } #define BOOST_PROTO_LOCAL_LIMITS (1, BOOST_PP_DEC(BOOST_PROTO_MAX_ARITY)) #include BOOST_PROTO_LOCAL_ITERATE() </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5901 Trac 1.4.3 Eric Niebler Mon, 19 Sep 2011 15:26:59 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5901#comment:1 https://svn.boost.org/trac10/ticket/5901#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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/74467" title="merge [74466] from trunk, fixes #5901">[74467]</a>) merge <a class="changeset" href="https://svn.boost.org/trac10/changeset/74466" title="remove trailing spaces">[74466]</a> from trunk, fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5901" title="#5901: Bugs: Suppressing warnings from Cray compiler (closed: fixed)">#5901</a> </p> Ticket