From: Wolfgang Bangerth Date: Wed, 15 May 2024 19:31:12 +0000 (-0600) Subject: Restrict operator<< for SymEngine auxiliary classes. X-Git-Tag: v9.6.0-rc1~267^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d553cb54f602a0f05f7bb52291f65790f07c3564;p=dealii.git Restrict operator<< for SymEngine auxiliary classes. --- diff --git a/include/deal.II/differentiation/sd/symengine_optimizer.h b/include/deal.II/differentiation/sd/symengine_optimizer.h index 74a088c0fa..9da2b55437 100644 --- a/include/deal.II/differentiation/sd/symengine_optimizer.h +++ b/include/deal.II/differentiation/sd/symengine_optimizer.h @@ -45,6 +45,7 @@ # include # include +# include # include # include # include @@ -114,9 +115,8 @@ namespace Differentiation /** * Output operator that outputs the selected optimizer type. */ - template - inline StreamType & - operator<<(StreamType &s, OptimizerType o) + inline std::ostream & + operator<<(std::ostream &s, OptimizerType o) { if (o == OptimizerType::dictionary) s << "dictionary"; @@ -266,9 +266,8 @@ namespace Differentiation * Output operator that outputs optimization flags as a set of or'd * text values. */ - template - inline StreamType & - operator<<(StreamType &s, OptimizationFlags o) + inline std::ostream & + operator<<(std::ostream &s, OptimizationFlags o) { s << " OptimizationFlags|"; if (static_cast(o & OptimizationFlags::optimize_cse))