summaryrefslogtreecommitdiff
path: root/src/mongo/base/SConscript
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2017-03-22 15:01:29 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2017-03-22 15:42:44 -0400
commit5d141bce7219aeb34d3de8cfae68d643bf9a3a16 (patch)
tree9c383418e36264dac7b25aad64a55e44700fea93 /src/mongo/base/SConscript
parent089ce06088bbafd4c862863a8aefb4c891bdc2ba (diff)
downloadmongo-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/SConscript9
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'