From d553cb54f602a0f05f7bb52291f65790f07c3564 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 15 May 2024 13:31:12 -0600 Subject: [PATCH] Restrict operator<< for SymEngine auxiliary classes. --- .../deal.II/differentiation/sd/symengine_optimizer.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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)) -- 2.39.5