You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
432 B

#include <memory>
struct Large {
size_t x;
char filler[512 - sizeof(size_t)] = {};
Large(size_t x) : x(x) {}
void* forward_raw(void* p);
std::unique_ptr<size_t> forward_unique(std::unique_ptr<size_t>&& p);
std::shared_ptr<size_t> forward_shared(std::shared_ptr<size_t>&& p);
std::unique_ptr<Large> forward_unique_large(std::unique_ptr<Large>&& p);
std::shared_ptr<Large> forward_shared_large(std::shared_ptr<Large>&& p);