aboutsummaryrefslogtreecommitdiff
path: root/cutl/compiler/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-11 11:01:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-11 11:01:03 +0200
commit3e0ec6220c1bcc32f45ffd26c08b99af556a8101 (patch)
treecbae1d7d731ce2f449e3563490aa689c577fba22 /cutl/compiler/context.hxx
parent2da617e92758c20c9abfd37122864a22e287f896 (diff)
Return reference to newly set value from compiler::context::set()
Diffstat (limited to 'cutl/compiler/context.hxx')
-rw-r--r--cutl/compiler/context.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cutl/compiler/context.hxx b/cutl/compiler/context.hxx
index c8e35e6..6a861e4 100644
--- a/cutl/compiler/context.hxx
+++ b/cutl/compiler/context.hxx
@@ -88,14 +88,14 @@ namespace cutl
get (std::string const& key, X const& default_value) const;
template <typename X>
- void
+ X&
set (char const* key, X const& value)
{
- set<X> (std::string (key), value);
+ return set<X> (std::string (key), value);
}
template <typename X>
- void
+ X&
set (std::string const& key, X const& value);
void