summaryrefslogtreecommitdiff
path: root/boost/spirit/home/x3/char/char_set.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/spirit/home/x3/char/char_set.hpp')
-rw-r--r--boost/spirit/home/x3/char/char_set.hpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/boost/spirit/home/x3/char/char_set.hpp b/boost/spirit/home/x3/char/char_set.hpp
index 26e15478dc..082f6ce191 100644
--- a/boost/spirit/home/x3/char/char_set.hpp
+++ b/boost/spirit/home/x3/char/char_set.hpp
@@ -67,18 +67,11 @@ namespace boost { namespace spirit { namespace x3
{
using spirit::x3::detail::cast_char;
- typedef typename
- remove_const<
- typename traits::char_type_of<String>::type
- >::type
- in_type;
-
- in_type const* definition =
- (in_type const*)traits::get_c_string(str);
- in_type ch = *definition++;
+ auto* definition = traits::get_c_string(str);
+ auto ch = *definition++;
while (ch)
{
- in_type next = *definition++;
+ auto next = *definition++;
if (next == '-')
{
next = *definition++;