Why construction of std::unique_ptr for incomplete type compiles? – stackoverflow.com

Code: #include <memory> struct Data; std::unique_ptr<Data> make_me(); int main() { std::unique_ptr<Data> m = make_me(); return 0; } Which of course fails: In file ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why construction of std::unique_ptr for incomplete type compiles? – stackoverflow.com"