|
Boost : |
Subject: Re: [boost] G++ hack/challenge?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-04-30 20:12:25
David Abrahams wrote:
> I need a way to detect whether a type "has a move
> constructor" (without causing a compiler error, of course) in GCC 4.4.
What about creating a type U that inherits from T, does using T::T, and
deletes U(const U&).
Now you just have to check whether U(make<U>()) is a valid expression
using SFINAE for expressions.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk