[Dune] [#1120] test-geogrid.cc doesn't compile with gcc 4.7

Dune flyspray at dune-project.org
Sat Jun 2 17:56:58 CEST 2012


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#1120 - test-geogrid.cc doesn't compile with gcc 4.7
User who did this - Martin Nolte (nolte)

----------
I don't know which one is better (in the sense of standard conformacy), because I don't know what kind of allocator has to be passed to std::vector. But I guess one of the following statements is true:

- std::vector< T, A > needs an allocator A for type T (e.g., A=std::allocator< T >)
- any allocator may be passed to std::vector (including a void one, like std::allocator< void >) and the problem is a bug in gcc.

So much for the standard. In any case, passing an allocator for type T looks safest to me (for any compiler). And this is exactly what I did.

----------

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

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