
Andrey Semashev <andysem <at> mail.ru> writes:
Hello Steven,
Saturday, February 3, 2007, 6:26:37 AM, you wrote:
Steven Watanabe <steven <at> providere-consulting.com> writes:
I just uploaded the implementation to the vault.
Maybe throw_exception.hpp should be used to actually throw exceptions. And maybe a good idea is to pass an actual value that triggered the default handler in the exception object.
Will do.
I'm not sure why do you consider such use case invalid:
void empty_default(int); switch_< cases >(1, f, &empty_default);
I don't
IMHO, the intent is quite clear - to call empty_default as the default handler. But the following:
switch_(1, f, &empty_default);
will not compile since V may not be deduced. Am I missing something?
I meant using wrap as opposed to a raw pointer to V. see http://www.boost.org/libs/config/config.htm#helpers under BOOST_EXPLICIT_TEMPLATE_TYPE. Oh. It already handles this case I'll fix it to use BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE In Christ, Steven Watanabe