aboutsummaryrefslogtreecommitdiff
path: root/cutl/compiler/context.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-04-02 14:28:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-04-02 14:28:37 +0200
commit7385921ace0e0b130de43709cd09bb973915657f (patch)
treeb2006aa8585289b9734db1756df771d8020b1b68 /cutl/compiler/context.txx
parent3af115d488289abfaec2635029f5efe3978d77f4 (diff)
Add std::string overload for context functions
Diffstat (limited to 'cutl/compiler/context.txx')
-rw-r--r--cutl/compiler/context.txx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cutl/compiler/context.txx b/cutl/compiler/context.txx
index ba73b6d..7f47cd9 100644
--- a/cutl/compiler/context.txx
+++ b/cutl/compiler/context.txx
@@ -9,7 +9,7 @@ namespace cutl
{
template <typename X>
X& context::
- get (char const* key)
+ get (std::string const& key)
{
map::iterator i (map_.find (key));
@@ -28,7 +28,7 @@ namespace cutl
template <typename X>
X const& context::
- get (char const* key) const
+ get (std::string const& key) const
{
map::const_iterator i (map_.find (key));
@@ -47,7 +47,7 @@ namespace cutl
template <typename X>
X const& context::
- get (char const* key, X const& default_value) const
+ get (std::string const& key, X const& default_value) const
{
map::const_iterator i (map_.find (key));
@@ -66,7 +66,7 @@ namespace cutl
template <typename X>
void context::
- set (char const* key, X const& value)
+ set (std::string const& key, X const& value)
{
try
{