dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #26439
Re: C++11 use?
-
To:
"Garth N. Wells" <gnw20@xxxxxxxxx>
-
From:
Johan Hake <hake.dev@xxxxxxxxx>
-
Date:
Wed, 06 Mar 2013 14:23:21 +0100
-
Cc:
DOLFIN Mailing List <dolfin@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<CAA4C66MoutNt0GdQQOJGCKYx6C8k_THQPBOCXtaM=s66hicetg@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3
On 03/06/2013 02:02 PM, Garth N. Wells wrote:
> On 5 March 2013 22:47, Martin Alnæs <martinal@xxxxxxxxx> wrote:
>> Those would be nice, and std::shared_ptr I guess?
>
> Depends on the SWIG support for std::shared_ptr. Maybe its trivial.
Should be pretty straight forward. We have made the code work with
std::tr1::shared_ptr previously. But heck it will require some work...
Johan
>> I guess the main bottleneck is compiler versions on clusters?
>>
>
> Yes, on old clusters. GCC 4.4 added quite some C++11 support, and
> Intel and IBM compilers have good support for it.
>
> After the new release I might slip some benign C++11 code into DOLFIN
> and see if it causes any problems.
>
> Garth
>
>> We would need to list which features to allow, the main problem
>> is maybe that it will be hard to enforce such limitations over time.
>>
>> Martin
>>
>> Den 5. mars 2013 kl. 22:21 skrev Anders Logg <logg@xxxxxxxxx>:
>>
>>> On Tue, Mar 05, 2013 at 06:45:32PM +0000, Garth N. Wells wrote:
>>>> What are the thoughts on starting to use some C++11 features? A few
>>>> things, like range-based loops, initializer lists and 'auto' would be
>>>> pretty handy.
>>>
>>> What are the limitations for different compilers compared to what we
>>> require now?
>>>
>>> --
>>> Anders
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dolfin
>>> Post to : dolfin@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dolfin
>>> More help : https://help.launchpad.net/ListHelp
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help : https://help.launchpad.net/ListHelp
>
References