$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2002-04-29 21:46:35
"Gennadiy Rozental" <rogeeff_at_[hidden]> wrote in message
news:aal00v$mjr$1_at_main.gmane.org...
> It won't it users will use distinct type like SharedWidgetPtr. Users could
> use Widget* directly but it is the case with the policy-based solution
> either. "Might even link and run in certain cases!"
This argument doesn't hold water. If users use Widget* directly, they have
and expect a regular pointer, not a smart pointer. On the contrary, in the
case of an ODR violation, users faithfully do everything they think it's
reasonable doing, yet the code goes amok.
Andrei