| 436 | /// assigns the correct vtable, and constructs the object on our storage. |
| 437 | template<typename ValueType> |
| 438 | void construct(ValueType&& value) |
| 439 | { |
| 440 | using T = typename std::decay<ValueType>::type; |
| 441 | |
| 442 | this->vtable = vtable_for_type<T>(); |
| 443 | |
| 444 | do_construct<ValueType,T>(std::forward<ValueType>(value)); |
| 445 | } |
| 446 | }; |
| 447 | |
| 448 |