Guest User

Untitled

a guest
Apr 26th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. /Users/as-xjc/ClionProjects/untitled1/main.cpp:20:7: error: no matching constructor for initialization of 'Int'
  2. Int t2(std::move(t1));
  3. ^ ~~~~~~~~~~~~~
  4. /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
  5. class Int : public TBase<int> {
  6. ^
  7. /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
  8. class Int : public TBase<int> {
  9. ^
  10. /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
  11. 1 error generated.
Add Comment
Please, Sign In to add comment