Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2007-01-21 06:48:38


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk