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:
parent
7409aa7b9b
commit
cbacbd9849
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user