|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61447 - in trunk/libs/spirit/example/scheme: input output scheme utree utree/detail
From: joel_at_[hidden]
Date: 2010-04-21 00:18:25
Author: djowel
Date: 2010-04-21 00:18:22 EDT (Wed, 21 Apr 2010)
New Revision: 61447
URL: http://svn.boost.org/trac/boost/changeset/61447
Log:
Renaming as<T> to get<T>
Text files modified:
trunk/libs/spirit/example/scheme/input/parse_sexpr_impl.hpp | 4 ++--
trunk/libs/spirit/example/scheme/output/utree_traits.hpp | 2 +-
trunk/libs/spirit/example/scheme/scheme/compiler.hpp | 2 +-
trunk/libs/spirit/example/scheme/scheme/intrinsics.hpp | 2 +-
trunk/libs/spirit/example/scheme/utree/detail/utree_detail2.hpp | 2 +-
trunk/libs/spirit/example/scheme/utree/utree.hpp | 2 +-
6 files changed, 7 insertions(+), 7 deletions(-)
Modified: trunk/libs/spirit/example/scheme/input/parse_sexpr_impl.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/input/parse_sexpr_impl.hpp (original)
+++ trunk/libs/spirit/example/scheme/input/parse_sexpr_impl.hpp 2010-04-21 00:18:22 EDT (Wed, 21 Apr 2010)
@@ -125,7 +125,7 @@
utree& result,
std::string const& source_file)
{
- return parse_sexpr(in.as<utf8_string_range>(), result, source_file);
+ return parse_sexpr(in.get<utf8_string_range>(), result, source_file);
}
bool parse_sexpr_list(
@@ -133,7 +133,7 @@
utree& result,
std::string const& source_file)
{
- return parse_sexpr_list(in.as<utf8_string_range>(), result, source_file);
+ return parse_sexpr_list(in.get<utf8_string_range>(), result, source_file);
}
}}
Modified: trunk/libs/spirit/example/scheme/output/utree_traits.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/output/utree_traits.hpp (original)
+++ trunk/libs/spirit/example/scheme/output/utree_traits.hpp 2010-04-21 00:18:22 EDT (Wed, 21 Apr 2010)
@@ -20,7 +20,7 @@
template <typename T>
inline T get(scheme::utree const& x)
{
- return x.as<T>();
+ return x.get<T>();
}
}
Modified: trunk/libs/spirit/example/scheme/scheme/compiler.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/scheme/compiler.hpp (original)
+++ trunk/libs/spirit/example/scheme/scheme/compiler.hpp 2010-04-21 00:18:22 EDT (Wed, 21 Apr 2010)
@@ -321,7 +321,7 @@
{
if (s.which() != utree_type::symbol_type)
throw identifier_expected();
- utf8_symbol_range symbol = s.as<utf8_symbol_range>();
+ utf8_symbol_range symbol = s.get<utf8_symbol_range>();
return std::string(symbol.begin(), symbol.end());
}
};
Modified: trunk/libs/spirit/example/scheme/scheme/intrinsics.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/scheme/intrinsics.hpp (original)
+++ trunk/libs/spirit/example/scheme/scheme/intrinsics.hpp 2010-04-21 00:18:22 EDT (Wed, 21 Apr 2010)
@@ -32,7 +32,7 @@
typedef utree result_type;
utree eval(args_type args) const
{
- return cond(args).as<bool>() ? then(args) : else_(args);
+ return cond(args).get<bool>() ? then(args) : else_(args);
}
};
Modified: trunk/libs/spirit/example/scheme/utree/detail/utree_detail2.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/utree/detail/utree_detail2.hpp (original)
+++ trunk/libs/spirit/example/scheme/utree/detail/utree_detail2.hpp 2010-04-21 00:18:22 EDT (Wed, 21 Apr 2010)
@@ -1132,7 +1132,7 @@
};
template <typename T>
- inline T utree::as() const
+ inline T utree::get() const
{
return utree::visit(*this, utree_cast<T>());
}
Modified: trunk/libs/spirit/example/scheme/utree/utree.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/utree/utree.hpp (original)
+++ trunk/libs/spirit/example/scheme/utree/utree.hpp 2010-04-21 00:18:22 EDT (Wed, 21 Apr 2010)
@@ -299,7 +299,7 @@
utree_type::info which() const;
template <typename T>
- T as() const;
+ T get() const;
utree& deref();
utree const& deref() const;
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