Boost C++ Libraries: Ticket #4555: Warning : Non-static reference in class without a constructor https://svn.boost.org/trac10/ticket/4555 <p> These are annoying warnings : </p> <p> /usr/local/trunk/boost/range/concepts.hpp|209|warning: non-static reference 'std::vector&lt;int, std::allocator&lt;int&gt; &gt;&amp; boost::<a class="missing wiki">SinglePassRangeConcept</a>&lt;std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt;::m_range' in class without a constructor| </p> <p> Perhaps adding a constructor to each concept class that contains a reference would solve the problem? </p> <p> Mac OSX 10.6.4 -- GCC 4.4.1 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4555 Trac 1.4.3 anonymous Tue, 17 Aug 2010 19:05:44 GMT attachment set https://svn.boost.org/trac10/ticket/4555 https://svn.boost.org/trac10/ticket/4555 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.cpp</span> </li> </ul> Ticket Neil Groves Sun, 14 Nov 2010 17:48:26 GMT status changed https://svn.boost.org/trac10/ticket/4555#comment:1 https://svn.boost.org/trac10/ticket/4555#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Neil Groves Thu, 23 Dec 2010 00:45:43 GMT <link>https://svn.boost.org/trac10/ticket/4555#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4555#comment:2</guid> <description> <p> You are exactly correct in both the problem and the solution. The issue is not with Boost.Range directly but with boost/concept_check.hpp. </p> <p> I have modified the function and predicate concept classes to eliminate this warning. The change has been committed to the trunk. I shall monitor the trunk regression test results before subsequently merging to the release branch. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Neil Groves</dc:creator> <pubDate>Thu, 23 Dec 2010 15:48:19 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4555#comment:3 https://svn.boost.org/trac10/ticket/4555#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket