mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-16 22:17:02 +07:00
replace state maps to sets
This commit is contained in:
@@ -43,7 +43,8 @@ TEST_CASE("meta/meta_examples/variable/usage") {
|
||||
|
||||
// prints all variables in the scope
|
||||
std::cout << "* " << constants_scope.get_name() << std::endl;
|
||||
for ( auto&& [index, variable] : constants_scope.get_variables() ) {
|
||||
std::cout << " - " << index.get_name() << ":" << variable.get_as<double>() << std::endl;
|
||||
for ( const meta::variable& variable : constants_scope.get_variables() ) {
|
||||
std::cout << " - " << variable.get_name()
|
||||
<< ":" << variable.get_as<double>() << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user