This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Predefined macros for rvalue reference support?
- From: David Fang <fang at csl dot cornell dot edu>
- To: Peter Dimov <pdimov at mmltd dot net>
- Cc: <libstdc++ at gcc dot gnu dot org>
- Date: Sat, 28 Apr 2007 15:46:50 -0400 (EDT)
- Subject: Re: Predefined macros for rvalue reference support?
> >> Can someone please tell me how a library can detect whether the
> >> compiler supports rvalue references? I'm trying to enable move
> >> support for boost::shared_ptr. Thanks.
> >
> > Hi,
> > Do you mean at configure-time?
>
> No, I need a compile time check. The Boost config system is not
> configure-based; it relies on the predefined preprocessor macros.
You mean something like a template metaprogramming test or trait? one
that doesn't use the rvalue-reference syntax but can still distinguish
between having and not having it?
Fang