Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75469 - trunk/boost/spirit/home/support
From: hartmut.kaiser_at_[hidden]
Date: 2011-11-12 17:49:35


Author: hkaiser
Date: 2011-11-12 17:49:34 EST (Sat, 12 Nov 2011)
New Revision: 75469
URL: http://svn.boost.org/trac/boost/changeset/75469

Log:
Spirit: adding get<> overload to extended_variant
Text files modified:
   trunk/boost/spirit/home/support/extended_variant.hpp | 10 ++++++++++
   1 files changed, 10 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/support/extended_variant.hpp
==============================================================================
--- trunk/boost/spirit/home/support/extended_variant.hpp (original)
+++ trunk/boost/spirit/home/support/extended_variant.hpp 2011-11-12 17:49:34 EST (Sat, 12 Nov 2011)
@@ -81,4 +81,14 @@
     };
 }}
 
+namespace boost
+{
+ template <typename T, BOOST_VARIANT_ENUM_PARAMS(typename T)>
+ inline T
+ get(boost::spirit::extended_variant<BOOST_VARIANT_ENUM_PARAMS(T)> const& x)
+ {
+ return boost::get<T>(x.get());
+ }
+}
+
 #endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk