0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-17816 Fix DecorationRegistry::declareDecoration compile error.

This commit is contained in:
Andy Schwerin 2015-04-03 16:26:22 -04:00
parent 7409aa7b9b
commit cbacbd9849

View File

@ -62,10 +62,11 @@ namespace mongo {
static_assert(std::is_nothrow_destructible<T>::value,
"Decorations must be nothrow destructible");
#endif
return { std::move(declareDecoration(sizeof(T),
return DecorationContainer::DecorationDescriptorWithType<T>(
std::move(declareDecoration(sizeof(T),
std::alignment_of<T>::value,
&constructAt<T>,
&destructAt<T>)) };
&destructAt<T>)));
}
size_t getDecorationBufferSizeBytes() const { return _totalSizeBytes; }