This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53173] PROD02
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 01 May 2012 09:36:50 +0000
- Subject: [Bug c++/53173] PROD02
- Auto-submitted: auto-generated
- References: <bug-53173-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53173
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-05-01 09:36:50 UTC ---
(In reply to comment #2)
> 2. error: no matching function for call to âstd::pair<const long unsigned int,
> boost::shared_ptr<const a::b::c::dConfig> >::pair(long unsigned int, const
> a::b::c::Config*)â
There is no implicit conversion from Config* to shared_ptr<Config>, it was a
bug in GCC that the code compiled previously.
You need to create the pair with a shared_ptr<Config> as the second argument,
not a Config*
> 5. error: declaration of â~typename a::b::c::dControl<Data, PublicSecurityID,
> PrivateSecurityID, ControlQueue, StatusQueue, Queue>::dControlâ as member of
> âa::b::c::dControl<Data, PublicSecurityID, PrivateSecurityID, FeedControlQueue,
> StatusQueue, Queue>â
You're declaring a destructor with the wrong type.