17 lines
289 B
C++
17 lines
289 B
C++
|
#include <array>
|
||
|
|
||
|
#include "hack/logger/logger.hpp"
|
||
|
#include "hack/memory/make_ptr.hpp"
|
||
|
|
||
|
auto main(int argc, char *argv[]) -> int
|
||
|
{
|
||
|
auto a = hack::memory::make_unique<int>(5);
|
||
|
hack::log()(*a);
|
||
|
|
||
|
auto arr = hack::memory::make_unique<int[]>(5);
|
||
|
arr[0] = 1;
|
||
|
hack::log()(arr[0]);
|
||
|
}
|
||
|
|
||
|
|