diff options
Diffstat (limited to 'boost/spirit/home/qi/detail/attributes.hpp')
-rw-r--r-- | boost/spirit/home/qi/detail/attributes.hpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/boost/spirit/home/qi/detail/attributes.hpp b/boost/spirit/home/qi/detail/attributes.hpp index c5f5037d8c..5ec776ba4f 100644 --- a/boost/spirit/home/qi/detail/attributes.hpp +++ b/boost/spirit/home/qi/detail/attributes.hpp @@ -94,16 +94,6 @@ namespace boost { namespace spirit { namespace qi } }; - // reference types need special handling - template <typename Attribute> - struct transform_attribute<Attribute&, Attribute> - { - typedef Attribute& type; - static Attribute& pre(Attribute& val) { return val; } - static void post(Attribute&, Attribute const&) {} - static void fail(Attribute&) {} - }; - // unused_type needs some special handling as well template <> struct transform_attribute<unused_type, unused_type> @@ -120,16 +110,6 @@ namespace boost { namespace spirit { namespace qi {}; template <typename Attribute> - struct transform_attribute<unused_type, Attribute> - : transform_attribute<unused_type, unused_type> - {}; - - template <typename Attribute> - struct transform_attribute<unused_type const, Attribute> - : transform_attribute<unused_type, unused_type> - {}; - - template <typename Attribute> struct transform_attribute<Attribute, unused_type> : transform_attribute<unused_type, unused_type> {}; @@ -149,30 +129,6 @@ namespace boost { namespace spirit { namespace traits : qi::transform_attribute<Exposed, Transformed> {}; } - - template <typename Exposed, typename Transformed> - struct transform_attribute<Exposed&, Transformed, qi::domain> - : transform_attribute<Exposed, Transformed, qi::domain> - {}; - - template <typename Attribute> - struct transform_attribute<Attribute&, Attribute, qi::domain> - : qi::transform_attribute<Attribute&, Attribute> - {}; - - /////////////////////////////////////////////////////////////////////////// - template <typename Exposed, typename Transformed> - void post_transform(Exposed& dest, Transformed const& attr) - { - return transform_attribute<Exposed, Transformed, qi::domain>::post(dest, attr); - } - - /////////////////////////////////////////////////////////////////////////// - template <typename Exposed, typename Transformed> - void fail_transform(Exposed& dest, Transformed const&) - { - return transform_attribute<Exposed, Transformed, qi::domain>::fail(dest); - } }}} #endif |