Re: C++11 move constructors



On Fri, 2012-11-23 at 21:07 +0100, Florian Philipp wrote:
> Am 23.11.2012 20:50, schrieb Tristan Matthews:
> > 2012/11/23 Murray Cumming <murrayc murrayc com>:
> >> Maybe we could add C++11 move constructors to the gtkmm classes,
> >> where appropriate, inside ifdefs to prevent them from breaking the
> >> build when C++11 is not enabled/supported by the compiler.
> > 
> > How would you test for C++11? An AC_COMPILE_IFELSE test that builds
> > a class with a move constructor?
> > 
> > -Tristan
> > 
> 
> That seems to be the only sensible way. Of course, this also means we
> have to test for each C++11-feature independently.

Yes, that's the right thing to do, I think. 

When C++11 is widely (and officially) supported by compilers, we won't
need these tests so much anyway because we could just demand C++11. But
that might take a couple more years.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com

murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]