Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /Users/as-xjc/ClionProjects/untitled1/main.cpp:20:7: error: no matching constructor for initialization of 'Int'
- Int t2(std::move(t1));
- ^ ~~~~~~~~~~~~~
- /Users/as-xjc/ClionProjects/untitled1/main.cpp:13:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'typename remove_reference<TBase<int> &>::type' (aka 'TBase<int>') to 'const Int' for 1st argument
- class Int : public TBase<int> {
- ^
- /Users/as-xjc/ClionProjects/untitled1/main.cpp:13:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'typename remove_reference<TBase<int> &>::type' (aka 'TBase<int>') to 'Int' for 1st argument
- class Int : public TBase<int> {
- ^
- /Users/as-xjc/ClionProjects/untitled1/main.cpp:13:7: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
- 1 error generated.
Add Comment
Please, Sign In to add comment