On 4/19/21 4:19 AM, Paras Kumar wrote:

std::unique_ptr<dealii::Patterns::PatternBase> nItersListPattern(new dealii::Patterns::List(dealii::Patterns::Integer(1), 2, 8, "|")); nIters = dealii::Patterns::Tools::Convert<decltype(nIters)>::to_value(nMaxItersString,  nItersListPattern);

I suspect you need to write this last line as
  dealii::Patterns::Tools::Convert<decltype(nIters)>::to_value(nMaxItersString,
   std::move(nItersListPattern));

but the idea seems right. I was using the latest development sources in which the argument has been changed from a unique-ptr to just a regular object.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           www: http://www.math.colostate.edu/~bangerth/

--
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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/10c4f3f8-ab6a-0d77-1283-00dda46303d4%40colostate.edu.

Reply via email to