mirror of
https://github.com/boostorg/callable_traits.git
synced 2026-02-12 12:02:24 +00:00
tweaks regarding MSVC
This commit is contained in:
@@ -24,7 +24,7 @@ struct adder {
|
||||
}
|
||||
};
|
||||
|
||||
void check_add(std::function<int(int, int)> f) {
|
||||
void check_add(std::function<int(int, int)>& f) {
|
||||
|
||||
auto add_result = f(99, 1);
|
||||
assert(add_result == 100);
|
||||
|
||||
Reference in New Issue
Block a user