diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-03-22 15:01:29 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-03-22 15:42:44 -0400 |
commit | 5d141bce7219aeb34d3de8cfae68d643bf9a3a16 (patch) | |
tree | 9c383418e36264dac7b25aad64a55e44700fea93 /src/mongo/base/SConscript | |
parent | 089ce06088bbafd4c862863a8aefb4c891bdc2ba (diff) | |
download | mongo-5d141bce7219aeb34d3de8cfae68d643bf9a3a16.tar.gz |
SERVER-26025 Smart pointer with clone on copy
This clonable pointer works like a unique_ptr, but upon
copy it invokes a customizable cloning function. A `clone`
member function is used by default. There exist several
customization points.
Diffstat (limited to 'src/mongo/base/SConscript')
-rw-r--r-- | src/mongo/base/SConscript | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/base/SConscript b/src/mongo/base/SConscript index 848aca3b7f0..af40fdab72a 100644 --- a/src/mongo/base/SConscript +++ b/src/mongo/base/SConscript @@ -55,6 +55,15 @@ env.CppUnitTest( ], ) +env.CppUnitTest( + target=[ + 'clonable_ptr_test', + ], + source=[ + 'clonable_ptr_test.cpp', + ], +) + env.Library( target=[ 'secure_allocator' |