Boost logo

Boost :

From: Stewart, Robert (stewart_at_[hidden])
Date: 2002-04-30 14:49:44


From: Gennadiy Rozental [mailto:rogeeff_at_[hidden]]
>
> "Peter Dimov" <pdimov_at_[hidden]> wrote in message
> news:00f801c1f068$0c7fc650$1d00a8c0_at_pdimov2...
> > > > // a.cpp
> > > >
> > > > class X;
> > > > smart_ptr<X> px;
>
> I think that if smart_ptr is using traits this wont compile.

That may be the case, but it may not. If the default implementation of the
traits class works fine for X, then it will compile. If the default
implementation doesn't work, it won't compile. Clearly, then, there are
situations where "smart_ptr<X>" means something different in different parts
of the code, thus violating the ODR.

Rob
Susquehanna International Group, LLP
http://www.sig.com

IMPORTANT:The information contained in this email and/or its attachments is
confidential. If you are not the intended recipient, please notify the
sender immediately by reply and immediately delete this message and all its
attachments. Any review, use, reproduction, disclosure or dissemination of
this message or any attachment by an unintended recipient is strictly
prohibited. Neither this message nor any attachment is intended as or
should be construed as an offer, solicitation or recommendation to buy or
sell any security or other financial instrument. Neither the sender, his or
her employer nor any of their respective affiliates makes any warranties as
to the completeness or accuracy of any of the information contained herein
or that this message or any of its attachments is free of viruses.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk