Change struct to a function
No reason for the visitor to be a struct.
Change-Id: If63415b52d52a23ec24733a4c3268547d8fbdbef
diff --git a/src/grammars.hpp b/src/grammars.hpp
index 02d6666..253a16a 100644
--- a/src/grammars.hpp
+++ b/src/grammars.hpp
@@ -74,7 +74,7 @@
command_names_table()
{
boost::mpl::for_each<CommandTypes, boost::type<boost::mpl::_>>([this](auto cmd) {
- add(commandNamesVisitor()(cmd), decltype(help_::m_cmd)(cmd));
+ add(commandNamesVisitor(cmd), decltype(help_::m_cmd)(cmd));
});
}
} const command_names;