|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56556 - trunk/libs/spirit/test/qi
From: hartmut.kaiser_at_[hidden]
Date: 2009-10-03 12:39:39
Author: hkaiser
Date: 2009-10-03 12:39:38 EDT (Sat, 03 Oct 2009)
New Revision: 56556
URL: http://svn.boost.org/trac/boost/changeset/56556
Log:
Spirit: changed tests to utilize the new customization points
Text files modified:
trunk/libs/spirit/test/qi/kleene.cpp | 12 ++++++++----
trunk/libs/spirit/test/qi/plus.cpp | 12 ++++++++----
trunk/libs/spirit/test/qi/repeat.cpp | 12 ++++++++----
3 files changed, 24 insertions(+), 12 deletions(-)
Modified: trunk/libs/spirit/test/qi/kleene.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/kleene.cpp (original)
+++ trunk/libs/spirit/test/qi/kleene.cpp 2009-10-03 12:39:38 EDT (Sat, 03 Oct 2009)
@@ -35,11 +35,15 @@
{
typedef char type; // value type of container
};
-
- inline void push_back(x_attr& c, char val)
+
+ template <>
+ struct push_back_container<x_attr, char>
{
- // push back value type into container
- }
+ static void call(x_attr& c, char val)
+ {
+ // push back value type into container
+ }
+ };
}}}
int
Modified: trunk/libs/spirit/test/qi/plus.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/plus.cpp (original)
+++ trunk/libs/spirit/test/qi/plus.cpp 2009-10-03 12:39:38 EDT (Sat, 03 Oct 2009)
@@ -35,11 +35,15 @@
{
typedef char type; // value type of container
};
-
- inline void push_back(x_attr& c, char val)
+
+ template <>
+ struct push_back_container<x_attr, char>
{
- // push back value type into container
- }
+ static void call(x_attr& c, char val)
+ {
+ // push back value type into container
+ }
+ };
}}}
int
Modified: trunk/libs/spirit/test/qi/repeat.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/repeat.cpp (original)
+++ trunk/libs/spirit/test/qi/repeat.cpp 2009-10-03 12:39:38 EDT (Sat, 03 Oct 2009)
@@ -35,11 +35,15 @@
{
typedef char type; // value type of container
};
-
- inline void push_back(x_attr& c, char val)
+
+ template <>
+ struct push_back_container<x_attr, char>
{
- // push back value type into container
- }
+ static void call(x_attr& c, char val)
+ {
+ // push back value type into container
+ }
+ };
}}}
int
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