Opened 21 years ago

Closed 19 years ago

#947 closed Bugs (Out of Date)

problem with shared_ptr on CC v5.1

Reported by: wajr Owned by: Peter Dimov
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

Unable to compile smart_ptr_test.cpp using Sun 
Workshop 6 2000/04/07 C++ 5.1 due to the following 
error:

"[snip...]/boost/smart_ptr.hpp", line 150: 
Error: "explicit" is not allowed here.

It seems that the explicit keyword may not appear on a 
templatized ctor for this compiler build. When the 
explicit keyword on line 150 is removed, the smart_ptr 
tests compile (and work) fine.

Change History (2)

comment:1 by jmaurer, 21 years ago

Logged In: YES 
user_id=53943

Note that smart_ptr_test.cpp compiles nicely with Sun
Workshop 6u1 C++ 5.2 (see the regression test results).
Please consider upgrading the compiler.

Boost focuses on the most recent versions of vendor's
compilers.   Nonetheless, we do appreciate your suggested
fix, but it's up to the maintainer whether the fix will be
integrated.

comment:2 by Peter Dimov, 19 years ago

Status: assignedclosed
Note: See TracTickets for help on using tickets.