This must be useful for something?Yes, by removing ShouldNotBeCalledDirectly ;-) Seriously, I didn't
Yeah, I know: a string class (such as my own). <g>
Anyways, it feels too easy so there must be a catch, but I'm blind.
Possibly could also be done in more elegant way?
look at it closely but... I'd just try to eliminate the ellipsis, to
give more freedom as to what can be passed as argument (unless you're
catching problematic cases earlier, in code you didn't show). Perhaps
template functions :-) FWIW, I used the same trick to detect narrow
literals here:
<http://breeze.svn.sourceforge.net/viewvc/breeze/trunk/breeze/meta/static_assert.hpp?view=log>
--
Gennaro Prota | <https://sourceforge.net/projects/breeze/>
Do you need expertise in C++? I'm available.