[program_options] vc6 and vc7: explicit function template arguments

Hello, it appears that both vc6 and vc7 don't understand explicit function template arguments, like this: value<string>()->implicit() where 'value' is a function. Anybody can suggest a workaround? One possible approach would be to make 'value' a class which overloaded operator->, but that's a lot of work. TIA, Volodya

Have you taken a look at BOOST_EXPLICIT_TEMPLATE_TYPE and familiy in Boost.Config? Joaquín M López Muñoz Telefónica, Investigación y Desarrollo Vladimir Prus ha escrito:
Hello, it appears that both vc6 and vc7 don't understand explicit function template arguments, like this:
value<string>()->implicit()
where 'value' is a function. Anybody can suggest a workaround? One possible approach would be to make 'value' a class which overloaded operator->, but that's a lot of work.
TIA, Volodya _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Joaquín Mª López Muñoz wrote:
Have you taken a look at BOOST_EXPLICIT_TEMPLATE_TYPE and familiy in Boost.Config?
It seems I have a different problem. vc6 don't understand that "value" is template, unless I fully qualify the name. That is boost::program_options::value<string>()->implicit() works and value<string>()->implicit() does not. Hmm... I guess it's possible to require qualified name on those compilers, in no other workaround exist. - Volodya
participants (2)
-
Joaquín Mª López Muñoz
-
Vladimir Prus