dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #24103
Re: [Branch ~dolfin-core/dolfin/main] Rev 6057: Pass range as std::pair ot tuple when testing for 'between'.
On 08/07/11 23:23, Johan Hake wrote:
> On Friday July 8 2011 15:22:18 noreply@xxxxxxxxxxxxx wrote:
>> ------------------------------------------------------------
>> revno: 6057
>> committer: Garth N. Wells <gnw20@xxxxxxxxx>
>> branch nick: dolfin-all
>> timestamp: Fri 2011-07-08 17:07:43 +0100
>> message:
>> Pass range as std::pair ot tuple when testing for 'between'.
>
> Why? Just curious :)
>
More expressive and more difficult to mis-use. The std::pair (or tuple
from Python) encapsulates the interval (a, b) that is used in the check.
Garth
>
> Johan
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help : https://help.launchpad.net/ListHelp
References