Subject: [Boost-bugs] [Boost C++ Libraries] #11800: Boost Convert fails on user defined types with no value_type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-18 01:00:05
#11800: Boost Convert fails on user defined types with no value_type
-----------------------------------+------------------------------
Reporter: Brad Anderson <eco@â¦> | Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.59.0
Severity: Problem | Keywords:
-----------------------------------+------------------------------
Both the stream and strtol converters seem to make use of is_string which
appears to not be using SFINAE correctly resulting in a compilation error
('value_type' : is not a member of 'X').
In 1.59.0 the offending line is boost/convert/detail/is_string.hpp:26.
{{{
template<typename T> struct is_string<T, /*is_range_class=*/true>
{
static bool const value = cnv::is_char<typename
T::value_type>::value;
};
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11800> 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:19 UTC