[Dune] [#587] GenericReferenceElements should use unsigned for indices, sizes etc.

Dune dune at dune-project.org
Mon Sep 21 18:18:13 CEST 2009


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#587 - GenericReferenceElements should use unsigned for indices, sizes etc.
User who did this - Markus Blatt (mblatt)

----------
While using int is of course possible for the Generic Reference Element, I still think using std::size_t is more natural as the index is non-negative.
It takes some time, but one gets used to using it. (BTW counting backeards is not a problem.)

In other places using std::size_t has the advantage that at least on some 64bit platforms one can reference all the elements of an array that can be allocated.
By not using size_t we cannot compute as large problems as the hardware would allow us.
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=587#comment1076

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list