Dear Claire,

In the next version of deal.II we will be requiring the compilers be C++11 
compatible. We therefore removed this namespace wrapper (less for us to 
maintain) and, as you suggest, require that users use namespace std instead. 

So yes, you probably need only substitute all instances of "std_cxx11" by "std” 
for things to work properly again. Using this macro 
<https://github.com/dealii/dealii/blob/5a231febeb4ba9cb0e4c5d6bc1c465fbd776ab53/include/deal.II/base/config.h.in#L178>,
 what you could also do is define your own namespace alias to keep 
compatibility between the two versions of deal.II. This would (might?) be 
something like 
#if DEAL_II_GTE(9,0,0)
  namespace std_cxx11 = std;
#endif

I hope that this helps.

Regards,
J-P

> On 11 Sep 2017, at 18:15, Claire <[email protected]> wrote:
> 
> 
> Dear all,
> 
> I had a code compiling fine on the latest dealii release (8.5.1).
> However compiling it with the latest version from git, I got some compiling 
> issues. The error messages would tell me
> error: ‘std_cxx11’ does not name a type or
> error: ‘std_cxx11’ has not been declared
> 
> when using :
> 
> typedef std_cxx11::tuple< typename hp::DoFHandler<dim>::active_cell_iterator,
>                           typename hp::DoFHandler<dim>::active_cell_iterator
>                         > IteratorTuple;
> 
> 
> It seems that the std_cxx11 namespace does not exit anymore, and that std:: 
> should be used instead.
> (e.g. std::tuple should be used instead of std_cxx11::tuple)
> 
> However, when doing so, I get the following error:
> 
> /home/claire/Logiciels/dealii/deal.II-master/include/deal.II/base/synchronous_iterator.h:79:13:
>  error: 
> ‘std::tuple<dealii::TriaActiveIterator<dealii::DoFCellAccessor<dealii::hp::DoFHandler<2,
>  2>, false> >, 
> dealii::TriaActiveIterator<dealii::DoFCellAccessor<dealii::hp::DoFHandler<2, 
> 2>, false> > > 
> dealii::SynchronousIterators<std::tuple<dealii::TriaActiveIterator<dealii::DoFCellAccessor<dealii::hp::DoFHandler<2,
>  2>, false> >, 
> dealii::TriaActiveIterator<dealii::DoFCellAccessor<dealii::hp::DoFHandler<2, 
> 2>, false> > > >::iterators’ is private
> 
> Is there something else that I need to do other than using "std" instead of 
> "std_cxx11" in order to use tuples of SynchronousIterator in the latest 
> dealii version?
> 
> I hope I was clear enough in explaining my issue.
> I you ever need more information, please feel free to ask.
> 
> Regards,
> 
> Claire
> 
> -- 
> The deal.II project is located at http://www.dealii.org/ 
> <http://www.dealii.org/>
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en 
> <https://groups.google.com/d/forum/dealii?hl=en>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to