r/cpp • • Oct 03 '17

Why is the std::function () operator const?

[deleted] — view deleted post

27 Upvotes

19 comments sorted by

View all comments

Show parent comment

11

u/[deleted] Oct 04 '17

we can't do anything about it.

Well, compilers could warn about it.