Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct TEST
- {
- void func(int i) { std::cout << i << std::endl; }
- void func(double d) = delete;
- }
- int main()
- {
- int i = 11;
- TEST test;
- test.func(i);
- double d = 11.0;
- test.func(d); // <<<<< Error!!
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement