From 7385921ace0e0b130de43709cd09bb973915657f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 2 Apr 2010 14:28:37 +0200 Subject: Add std::string overload for context functions --- cutl/compiler/context.txx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cutl/compiler/context.txx') 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 X& context:: - get (char const* key) + get (std::string const& key) { map::iterator i (map_.find (key)); @@ -28,7 +28,7 @@ namespace cutl template 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 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 void context:: - set (char const* key, X const& value) + set (std::string const& key, X const& value) { try { -- cgit v1.1