mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 13:29:04 +08:00
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
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*>(&(std::ostringstream() << smaller_dim))->str();
|
|
- std::string dim_ratio_str = static_cast<std::ostringstream*>(&(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
|