From b1f7aea72636a0389f13c84b23bbba83c60f64aa Mon Sep 17 00:00:00 2001 From: "Ryan M. Richard" Date: Mon, 6 Jan 2025 09:08:57 -0600 Subject: [PATCH] grrr (more string ambiguousness) --- include/tensorwrapper/shape/smooth.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/tensorwrapper/shape/smooth.hpp b/include/tensorwrapper/shape/smooth.hpp index 0568a8b7..32d167de 100644 --- a/include/tensorwrapper/shape/smooth.hpp +++ b/include/tensorwrapper/shape/smooth.hpp @@ -198,9 +198,10 @@ class Smooth : public ShapeBase { /// Implements to_string typename polymorphic_base_type::string_type to_string_() const override { - string_type buffer("{"); - for(auto x : m_extents_) buffer += string_type(" ") + std::to_string(x); - buffer += string_type("}"); + using str_type = typename polymorphic_base_type::string_type; + str_type buffer("{"); + for(auto x : m_extents_) buffer += str_type(" ") + std::to_string(x); + buffer += str_type("}"); return buffer; }