Hi Luca,

> Most probably, you forgot to include a statement like
>
> using namespace dealii;
>
> on top of your include file.

This might be nitpicking from my side, but you shouldn't put "using
namespace" directives inside headers and also not in front of any
includes in your source files. The reason is that this can end up in
undefined behavior or errors depending on the order you include the
header files.

See for example item 40 in More Exceptional C++:
"Namespace Rule #1: Never write using-directives in header files.
Namespace Rule #2: Never write namespace using-declarations in header files.
Namespace Rule #3: In implementation files, never write a
using-declaration or a using-directive before an #include directive."

I just had to comment on this, sorry. :-)

--
Timo Heister
http://num.math.uni-goettingen.de/~heister
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to