Boost C++ Libraries: Ticket #24: smart_ptr.hpp warnings on vacpp https://svn.boost.org/trac10/ticket/24 <pre class="wiki">On vacpp version 5.0 (VisualAge C++ Professional for AIX), smart_ptr.hpp (from boost release 1.26.0) produces some warnings which can easily be eliminated. These warnings result from - implicit private inheritance (noncopyable) - missing typename keyword, as for example: "./boost/smart_ptr.hpp", line 79.41: 1540-0198 (W) The omitted keyword "private" is assumed for base class "noncopyable". "./boost/smart_ptr.hpp", line 150.27: 1540-0152 (W) A template dependent name that is a type must be qualified with "typename". See the attached patch file for changes to make the compiler happy. Ingolf </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/24 Trac 1.4.3 Peter Dimov Wed, 28 May 2003 12:30:15 GMT status changed https://svn.boost.org/trac10/ticket/24#comment:1 https://svn.boost.org/trac10/ticket/24#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket ingolf Thu, 05 Jun 2003 19:30:59 GMT <link>https://svn.boost.org/trac10/ticket/24#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/24#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=95969 Peter, could you please re-open the problem report, as at least the "missing typename" warnings are still present in version 1.30.0: "boost/detail/shared_count.hpp", line 364.27: 1540-0152 (W) A template dependent name that is a type must be qualified with "typename". "boost/shared_ptr.hpp", line 75.60: 1540-0152 (W) A template dependent name that is a type must be qualified with "typename". "boost/shared_ptr.hpp", line 182.25: 1540-0152 (W) A template dependent name that is a type must be qualified with "typename". "boost/shared_ptr.hpp", line 206.28: 1540-0152 (W) A template dependent name that is a type must be qualified with "typename". "boost/shared_ptr.hpp", line 395.37: 1540-0152 (W) A template dependent name that is a type must be qualified with "typename". "boost/shared_ptr.hpp", line 395.76: 1540-0152 (W) A template dependent name that is a type must be qualified with "typename". However, I'm not completely convinced that vacpp is right here. Kind regards Ingolf </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Mon, 09 Jun 2003 18:10:04 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/24#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/24#comment:3</guid> <description> <pre class="wiki">Logged In: YES user_id=305912 I think that the warnings are a compiler bug. C++ does not allow "typename X&lt;T&gt;", even though X&lt;T&gt; is dependent, since it always names a type (a class template instantiation.) </pre> </description> <category>Ticket</category> </item> </channel> </rss>