Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. struct TEST
  2. {
  3. void func(int i) { std::cout << i << std::endl; }
  4. void func(double d) = delete;
  5. }
  6.  
  7. int main()
  8. {
  9. int i = 11;
  10.  
  11. TEST test;
  12. test.func(i);
  13.  
  14.  
  15. double d = 11.0;
  16. test.func(d); // <<<<< Error!!
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement