$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Jeff Garland (jeff_at_[hidden])
Date: 2005-10-08 12:44:09
On Fri, 7 Oct 2005 17:43:44 +0000 (UTC), Thorsten Ottosen wrote
> > ptr_map<>::insert(key, value) function is taking first argument by non-const
> > reference. Is it missing 'const' there?
>
> No, its an exception-safety issue. if evaluating the first
> expression could throw, we could leak.
Sorry to be slow, but how does const impact that -- just to prevent automatic
conversion of keys from throwing?
Jeff