Language
C++
Compiler
clang 10.0.0
Options
Don't Use Boost
C++2a
no pedantic
$ clang++ prog.cc -std=c++2a
Exit Code:
1
C++
clang 10.0.0
$ clang++ prog.cc -std=c++2a
prog.cc:112:20: error: call to implicitly-deleted copy constructor of 'std::__1::unique_ptr<int [], std::__1::default_delete<int []> >'
identification(heap_array);// <- コンパイルエラー発生
^~~~~~~~~~
/opt/wandbox/clang-10.0.0/include/c++/v1/memory:2756:3: note: copy constructor is implicitly deleted because 'unique_ptr<int [], std::__1::default_delete<int []> >' has a user-declared move constructor
unique_ptr(unique_ptr&& __u) _NOEXCEPT
^
prog.cc:76:28: note: passing argument to parameter here
auto identification(auto...)noexcept{ // その他が入力された場合実行
^
1 error generated.