diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2018-03-02 16:50:44 -0500 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2018-03-02 16:51:30 -0500 |
commit | 2084f6702cd026bebe61818564814aac3e2f12a3 (patch) | |
tree | 0d7b43312bc6f110e4a79fcabe03ba74226d2143 /src/mongo/util/SConscript | |
parent | ad94e51e0dd40b0d0c38215a36caf75a4be48415 (diff) | |
download | mongo-2084f6702cd026bebe61818564814aac3e2f12a3.tar.gz |
SERVER-33437 Make Decorables not type-erased.
The current Decorable system type-erases the most derived (Decorated)
type when registering Decorations. This is illegal as derived classes
which are no longer standard-layout can have the `Decorable` base
class reordered with respect to the base address of their storage.
This also removes the "with-owner" forms of declaring a decoration,
which caused problems with layout. The decoration handles have
been modified to provide mechanisms to get back to the owner
directly, given a pointer or reference to the decoration.
Diffstat (limited to 'src/mongo/util/SConscript')
-rw-r--r-- | src/mongo/util/SConscript | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/util/SConscript b/src/mongo/util/SConscript index dbac968868e..dc46c7a6fa9 100644 --- a/src/mongo/util/SConscript +++ b/src/mongo/util/SConscript @@ -59,22 +59,12 @@ debuggerEnv.Library( ] ) -env.Library( - target='decorable', - source=[ - 'decoration_container.cpp', - 'decoration_registry.cpp', - ], - LIBDEPS=[] - ) - env.CppUnitTest( target='decorable_test', source=[ 'decorable_test.cpp' ], LIBDEPS=[ - 'decorable', ] ) |