|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71503 - trunk/boost/spirit/home/karma/auto
From: hartmut.kaiser_at_[hidden]
Date: 2011-04-26 08:54:49
Author: hkaiser
Date: 2011-04-26 08:54:45 EDT (Tue, 26 Apr 2011)
New Revision: 71503
URL: http://svn.boost.org/trac/boost/changeset/71503
Log:
Spirit: fixing Karma for BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
Text files modified:
trunk/boost/spirit/home/karma/auto/meta_create.hpp | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
Modified: trunk/boost/spirit/home/karma/auto/meta_create.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/auto/meta_create.hpp (original)
+++ trunk/boost/spirit/home/karma/auto/meta_create.hpp 2011-04-26 08:54:45 EDT (Tue, 26 Apr 2011)
@@ -52,56 +52,56 @@
struct meta_create_string
{
typedef spirit::standard::string_type type;
- static type const& call() { return spirit::standard::string; }
+ static type const call() { return type(); }
};
template <>
struct meta_create_string<wchar_t*>
{
typedef spirit::standard_wide::string_type type;
- static type const& call() { return spirit::standard_wide::string; }
+ static type const call() { return type(); }
};
template <>
struct meta_create_string<wchar_t const*>
{
typedef spirit::standard_wide::string_type type;
- static type const& call() { return spirit::standard_wide::string; }
+ static type const call() { return type(); }
};
template <int N>
struct meta_create_string<wchar_t[N]>
{
typedef spirit::standard_wide::string_type type;
- static type const& call() { return spirit::standard_wide::string; }
+ static type const call() { return type(); }
};
template <int N>
struct meta_create_string<wchar_t const[N]>
{
typedef spirit::standard_wide::string_type type;
- static type const& call() { return spirit::standard_wide::string; }
+ static type const call() { return type(); }
};
template <int N>
struct meta_create_string<wchar_t(&)[N]>
{
typedef spirit::standard_wide::string_type type;
- static type const& call() { return spirit::standard_wide::string; }
+ static type const call() { return type(); }
};
template <int N>
struct meta_create_string<wchar_t const(&)[N]>
{
typedef spirit::standard_wide::string_type type;
- static type const& call() { return spirit::standard_wide::string; }
+ static type const call() { return type(); }
};
template <typename Traits, typename Allocator>
struct meta_create_string<std::basic_string<wchar_t, Traits, Allocator> >
{
typedef spirit::standard_wide::string_type type;
- static type const& call() { return spirit::standard_wide::string; }
+ static type const call() { return type(); }
};
///////////////////////////////////////////////////////////////////////////
@@ -205,26 +205,26 @@
struct meta_create<char>
{
typedef spirit::standard::char_type type;
- static type const& call() { return spirit::standard::char_; }
+ static type const call() { return type(); }
};
template <>
struct meta_create<signed char>
{
typedef spirit::standard::char_type type;
- static type const& call() { return spirit::standard::char_; }
+ static type const call() { return type(); }
};
template <>
struct meta_create<wchar_t>
{
typedef spirit::standard_wide::char_type type;
- static type const& call() { return spirit::standard_wide::char_; }
+ static type const call() { return type(); }
};
template <>
struct meta_create<unsigned char>
{
typedef spirit::standard::char_type type;
- static type const& call() { return spirit::standard::char_; }
+ static type const call() { return type(); }
};
// boolean generator
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