Re: [eigen] Array, Matrix, PlainObjectBase and DenseStorage are now move enabled |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: "[eigen] mailing list" <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [eigen] Array, Matrix, PlainObjectBase and DenseStorage are now move enabled
- From: Dale Lukas Peterson <hazelnusse@xxxxxxxxx>
- Date: Wed, 7 Aug 2013 18:01:14 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=dF9cfNEfbX0iPExer6Px/6WXX0KBjPXODhrdyaWbuwk=; b=DYkpICl5AWiW17LkE14sHgsF+tulYvUt1LdQBM3FU9p7GG+32UDsOr6i7vVj6vjXdS WkD5hVSBKCBEHnQILOsdLKOazNHcuZ6kgOrGzCuEtkQRI5Yco/Mt1bLHub0v5zb/HFE4 n5rNVJf7VJQ3DEeKL+01s8CDN4UlHDONfrbe1ldMg+y0Rmj5AdAr1a5Dfq41Ijn6Nnjg uVlnYw2+Q/5LlnCNlkZiJne1Tb3uQe1A6eHiW6qNBNFsYrfTBUyqNhoBV5CD+Enk6DVC D2b3i02x4eRUTTOGYgWKdItKT2a2rBABk8+OmTRbGsSS1HCHxrIEDDeNu/uNhQRvrPKW NMsA==
Hauke,
Thanks for adding this. I was looking into how to detect whether a
compiler supports C++11 features and found this on the gcc mailing
list:
http://gcc.gnu.org/ml/gcc-help/2011-05/msg00355.html
Basically, it says you should check for c++11 support via:
#if __cplusplus >= 201103L
....
#endif
As opposed to:
#ifdef __GXX_EXPERIMENTAL_CXX0X__
....
#endif
I don't know how well this is supported across compilers (and what
versions they became compliant), but I tested on clang++ 3.3 and g++
4.7.3 and both of these define the __cplusplus variable correctly
based upon the -std=<C++ version> flag. If MSVC is also compliant,
this would be a simpler and more future proof way to check things.
Luke
On Mon, Aug 5, 2013 at 4:08 AM, Wood, Tobias <tobias.wood@xxxxxxxxx> wrote:
> Thanks Hauke. Part of the reason I have become interested in C++ again is the new standard.
>
> On the subject of C++11, the other nice feature that I would like to see in Eigen is the {} initialisation/construction syntax. Is there any chance of Eigen supporting this as an alternative to the << initialiser?
>
> Regards,
> Tobias Wood
>
>> Oh good. Move semantics are one of the nicest features in C++11.
>>
>>
>> On Fri, Aug 2, 2013 at 2:05 PM, Hauke Heibel <hauke.heibel@xxxxxxxxx> wrote:
>> Hi guys,
>>
>> I committed move support for the classes mentioned in the topic. I hope that I did not introduce any errors. In case you find anything dubious, please let me know so I can quickly fix it.
>>
>> Regards,
>> Hauke
>>
>>
>>
>> --
>> Rohit Garg
>>
>> http://rpg-314.blogspot.com/
>>
>> Graduate Student
>> Applied and Engineering Physics
>> Cornell University
>
>
>
>
--
“People call me a perfectionist, but I'm not. I'm a rightist. I do
something until it's right, and then I move on to the next thing.”
― James Cameron