smart_ptr.hpp warnings on vacpp
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
Change History
(3)
| Status: |
assigned → closed
|
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