summaryrefslogtreecommitdiff
path: root/boost/spirit/home/x3/auxiliary/attr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/spirit/home/x3/auxiliary/attr.hpp')
-rw-r--r--boost/spirit/home/x3/auxiliary/attr.hpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/boost/spirit/home/x3/auxiliary/attr.hpp b/boost/spirit/home/x3/auxiliary/attr.hpp
index 364cca0bee..5b3c7a5d85 100644
--- a/boost/spirit/home/x3/auxiliary/attr.hpp
+++ b/boost/spirit/home/x3/auxiliary/attr.hpp
@@ -9,10 +9,6 @@
#ifndef BOOST_SPIRIT_X3_ATTR_JUL_23_2008_0956AM
#define BOOST_SPIRIT_X3_ATTR_JUL_23_2008_0956AM
-#if defined(_MSC_VER)
-#pragma once
-#endif
-
#include <boost/spirit/home/x3/core/parser.hpp>
#include <boost/spirit/home/x3/support/unused.hpp>
#include <boost/spirit/home/x3/support/traits/container_traits.hpp>
@@ -112,24 +108,24 @@ namespace boost { namespace spirit { namespace x3
typename remove_reference<Value>::type>::type>
operator()(Value&& value) const
{
- return {std::forward<Value>(value)};
+ return { std::forward<Value>(value) };
}
template <typename Value, std::size_t N>
attr_parser<typename remove_cv<Value>::type[N]>
operator()(Value (&value)[N]) const
{
- return {value};
+ return { value };
}
template <typename Value, std::size_t N>
attr_parser<typename remove_cv<Value>::type[N]>
operator()(Value (&&value)[N]) const
{
- return {value};
+ return { value };
}
};
- attr_gen const attr = attr_gen();
+ auto const attr = attr_gen{};
}}}
#endif