diff options
author | 2012-06-11 00:39:18 +0300 | |
---|---|---|
committer | 2012-07-08 12:41:25 +0300 | |
commit | 29b377c53e8b0785400167d6dc62f29667f046ab (patch) | |
tree | c2b3c18e3ee0a0b91465477092e97c9b332035ed /src/cppbash_builtin.cpp | |
parent | Parser&Walker: Support for loop without list (diff) | |
download | libbash-29b377c53e8b0785400167d6dc62f29667f046ab.tar.gz libbash-29b377c53e8b0785400167d6dc62f29667f046ab.tar.bz2 libbash-29b377c53e8b0785400167d6dc62f29667f046ab.zip |
Replace boost::scoped_ptr with std::unique_ptr
const std::unique_ptr provides everything that boost::scoped_ptr does so
no need to rely on it.
Diffstat (limited to 'src/cppbash_builtin.cpp')
-rw-r--r-- | src/cppbash_builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cppbash_builtin.cpp b/src/cppbash_builtin.cpp index 51cd15c..7c9cb84 100644 --- a/src/cppbash_builtin.cpp +++ b/src/cppbash_builtin.cpp @@ -57,7 +57,7 @@ cppbash_builtin::cppbash_builtin(BUILTIN_ARGS): _out_stream(&out), _err_stream(& } cppbash_builtin::builtins_type& cppbash_builtin::builtins() { - static boost::scoped_ptr<builtins_type> p(new builtins_type { + static const std::unique_ptr<builtins_type> p(new builtins_type { {"break", boost::factory<break_builtin*>()}, {"continue", boost::factory<continue_builtin*>()}, {"echo", boost::factory<echo_builtin*>()}, |