mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-16 22:17:02 +07:00
fix examples
This commit is contained in:
@@ -69,7 +69,7 @@ TEST_CASE("meta/meta_examples/methods/usage") {
|
||||
CHECK(ivec2_add.is_invocable_with<ivec2&, ivec2>());
|
||||
|
||||
// calls the method and retrieves a returned value
|
||||
const meta::value ivec2_add_result_value = ivec2_add.invoke(v, ivec2{22, 11}).value();
|
||||
const meta::value ivec2_add_result_value = ivec2_add.invoke(v, ivec2{22, 11});
|
||||
|
||||
// checks the type and value of the result
|
||||
CHECK(ivec2_add_result_value.get_type() == meta::resolve_type<ivec2>());
|
||||
|
||||
Reference in New Issue
Block a user