diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-11 11:01:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-11 11:01:03 +0200 |
commit | 3e0ec6220c1bcc32f45ffd26c08b99af556a8101 (patch) | |
tree | cbae1d7d731ce2f449e3563490aa689c577fba22 /cutl/compiler/context.hxx | |
parent | 2da617e92758c20c9abfd37122864a22e287f896 (diff) |
Return reference to newly set value from compiler::context::set()
Diffstat (limited to 'cutl/compiler/context.hxx')
-rw-r--r-- | cutl/compiler/context.hxx | 6 |
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 |