$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [lexical_cast] A suggestion
From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2009-02-04 11:53:07
Andrew Troschinetz <ast <at> arlut.utexas.edu> writes:
> Here's some example usage: http://codepad.org/hn6MjKjm
It's not clear from the example that this inliner
lexical_cast< optional<int> >("x").get_value_or(-1);
is a replacement for
lexical_cast("x", -1);
It's not conceptually correct but we already have an exception for
handling spaces in strings. I should think about making one more
exception for optional<T>. Though, the inliner is not short,
not sure people will like it.
-- Alex