
21 Jan
2007
21 Jan
'07
11:48 a.m.
Dmitry Ivankov wrote:
And here goes workaround: Wrap invalid type into another template. So that type can't be detected until helper is instantiated.
[ ... ]
template<class T> struct limits { static int const value = true; // static T declared_only(); typedef limits_static_functor_helper<T> declared_only; };
It won't work for std::numeric_limits because it can't be changed. -- Alexander Nasonov http://nasonov.blogspot.com I love acting. It is so much more real than life. -- Oscar Wilde -- This quote is generated by: /usr/pkg/bin/curl -L http://tinyurl.com/veusy \ | sed -e 's/^document\.write(.//' -e 's/.);$/ --/' \ -e 's/<[^>]*>//g' -e 's/^More quotes from //' \ | fmt | tee ~/.signature-quote