Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12136: Propose lexical_cast type traits
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-19 14:38:47
#12136: Propose lexical_cast type traits
-------------------------------------+-------------------------------------
Reporter: Tony Lewis | Owner: apolukhin
<tonyelewis@â¦> | Status: new
Type: Feature Requests | Component: lexical_cast
Milestone: To Be Determined | Severity: Optimization
Version: Boost 1.61.0 | Keywords:
Resolution: | lexical_cast,trait,ostreamable,istreamable,lexical_castable
-------------------------------------+-------------------------------------
Comment (by Tony Lewis <tonyelewis@â¦>):
Thanks for detection idiom pointer - look interesting.
Thanks for suggested implementation.
Thoughts:
* Though people technically ''can'' implement their own trait code (like
your suggested implementation), they probably ''shouldn't'' because,
AFAIA, the library doesn't present this expression as part of it's
interface, ie using it means depending on the library's internals. Unless
the library's public documentation can guarantee that this expression is
guaranteed to remain correct, this functionality is best provided by the
library so it can insulate users' code from changes to the internals.
* I wholeheartedly agree that `lexical_cast`'s simple interface is one of
its strengths. That said, I think the proposed traits would add very
little complexity and could be kept to a corner of the documentation so
they don't confuse new users.
Thanks very much.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12136#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC