diff --git a/src/library/generator.transpose.cpp b/src/library/generator.transpose.cpp index a04a43a..5c15882 100644 --- a/src/library/generator.transpose.cpp +++ b/src/library/generator.transpose.cpp @@ -1089,8 +1089,18 @@ clfftStatus genSwapKernelGeneral(const FFTGeneratedTransposeNonSquareAction::Sig //std::string funcName = "swap_nonsquare_" + std::to_string(smaller_dim) + "_" + std::to_string(dim_ratio); std::string funcName = "swap_nonsquare_"; - std::string smaller_dim_str = static_cast(&(std::ostringstream() << smaller_dim))->str(); - std::string dim_ratio_str = static_cast(&(std::ostringstream() << dim_ratio))->str(); + std::string smaller_dim_str; + { + std::ostringstream oss; + oss << smaller_dim; + smaller_dim_str = oss.str(); + } + std::string dim_ratio_str; + { + std::ostringstream oss; + oss << dim_ratio; + dim_ratio_str = oss.str(); + } if(params.fft_N[0] > params.fft_N[1]) funcName = funcName + smaller_dim_str + "_" + dim_ratio_str; else