[Dune] [#453] Dune::BlockBitField is not a replacement for std::vector<Dune::BitField>
Dune
dune at dune-project.org
Fri Nov 14 17:36:13 CET 2008
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#453 - Dune::BlockBitField is not a replacement for std::vector<Dune::BitField>
User who did this - Carsten Gräser (Carsten)
----------
Yes in inherits all methods but they are not found by name lookup (clause 14.6.2) without a 'using' declaration. I know that BitVectorConstReference plays the role of a const reference. But consider the following case (which I used):
template<class BitSetType>
void f(const BitSetType b)
{
std::cout << b[0] << std::endl;
}
Then f(BS[0]) does currently only work if BS is a _const_ BitSetVector which is strange. Thus I propose to add the 'using' declarations and everything will work as expected.
----------
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=453#comment647
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