[Dune] error: conversion from 'const std::allocator<std::_Rb_tree_node<long unsigned int> >' to non-scalar type 'Dune::PoolAllocator<long unsigned int, 10ul>' requested

Oswald Benedikt Benedikt.Oswald at psi.ch
Mon Oct 26 14:13:20 CET 2009


Hi Dune, there is a problem related to the PoolAllocator when building istl.
I am using the dune head.

thanks for having a look, Benedikt



Making all in dune
Making all in istl
Making all in .
make[4]: Nothing to be done for `all-am'.
Making all in tutorial
mpicxx -DHAVE_CONFIG_H -I. -I../../..  -I/Users/oswald/svnwork/dune-trunk/dune-common -I../../.. -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3  -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -MT example.o -MD -MP -MF .deps/example.Tpo -c -o example.o example.cc
/usr/include/c++/4.0.0/bits/stl_tree.h: In member function '_Alloc std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::get_allocator() const [with _Key = long unsigned int, _Val = long unsigned int, _KeyOfValue = std::_Identity<long unsigned int>, _Compare = std::less<long unsigned int>, _Alloc = Dune::PoolAllocator<long unsigned int, 10ul>]':
/usr/include/c++/4.0.0/bits/stl_tree.h:558:   instantiated from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Rb_tree(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&) [with _Key = long unsigned int, _Val = long unsigned int, _KeyOfValue = std::_Identity<long unsigned int>, _Compare = std::less<long unsigned int>, _Alloc = Dune::PoolAllocator<long unsigned int, 10ul>]'
/usr/include/c++/4.0.0/bits/stl_set.h:202:   instantiated from 'std::set<_Key, _Compare, _Alloc>::set(const std::set<_Key, _Compare, _Alloc>&) [with _Key = long unsigned int, _Compare = std::less<long unsigned int>, _Alloc = Dune::PoolAllocator<long unsigned int, 10ul>]'
../../../dune/istl/bcrsmatrix.hh:573:   instantiated from here
/usr/include/c++/4.0.0/bits/stl_tree.h:351: error: conversion from 'const std::allocator<std::_Rb_tree_node<long unsigned int> >' to non-scalar type 'Dune::PoolAllocator<long unsigned int, 10ul>' requested
make[4]: *** [example.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--- Failed to build dune-istl ---


------------------------------------------------------------------------------------------------------------------
Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, www.psi.ch, Computational Accelerator Scientist
Paul Scherrer  Institute (PSI), CH-5232 Villigen, Suisse, benedikt.oswald at psi.ch, +41(0)56 310 32 12
"Passion is required for any great work, and for the Revolution passion and audacity are required in big doses.", 
Ernesto 'Che' Guevara, Letter to his parents.
http://maxwell.psi.ch/amaswiki/index.php/User:BenediktOswald 
------------------------------------------------------------------------------------------------------------------




-----Original Message-----
From: dune-bounces+benedikt.oswald=psi.ch at dune-project.org on behalf of Dune
Sent: Mon 26.10.2009 13:53
To: dune at dune-project.org
Subject: [Dune] [#584] Replace SmartPointer by shared_ptr
 
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task is now closed:

FS#584 - Replace SmartPointer by shared_ptr
User who did this - Oliver Sander (sander)

Reason for closing: Fixed
Additional comments about closing: Please reopen if additional problems appear.

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

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.

_______________________________________________
Dune mailing list
Dune at dune-project.org
http://lists.dune-project.org/mailman/listinfo/dune

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 5022 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20091026/28d1a11d/attachment.bin>


More information about the Dune mailing list