git: 561d1faa6155 - main - math/clfft: Unbreak by fixing C++ error

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 14 Sep 2022 08:44:10 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=561d1faa6155aea59e9acd196f9171e5dcdd5e64

commit 561d1faa6155aea59e9acd196f9171e5dcdd5e64
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-09-14 08:43:08 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-09-14 08:44:07 +0000

    math/clfft: Unbreak by fixing C++ error
    
    Approved by:    portmgr (unbreak)
---
 .../files/patch-src_library_generator.transpose.cpp      | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/math/clfft/files/patch-src_library_generator.transpose.cpp b/math/clfft/files/patch-src_library_generator.transpose.cpp
new file mode 100644
index 000000000000..e17a58968168
--- /dev/null
+++ b/math/clfft/files/patch-src_library_generator.transpose.cpp
@@ -0,0 +1,16 @@
+- fix C++ error
+
+--- src/library/generator.transpose.cpp.orig	2016-08-31 21:46:51 UTC
++++ src/library/generator.transpose.cpp
+@@ -1089,8 +1089,9 @@ clfftStatus genSwapKernelGeneral(const FFTGeneratedTra
+ 
+ 	//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::ostringstream ss1, ss2;
++	std::string smaller_dim_str = (ss1 << smaller_dim, ss1.str());
++	std::string dim_ratio_str = (ss2 << dim_ratio, ss2.str());
+ 	if(params.fft_N[0] > params.fft_N[1])
+ 		funcName = funcName + smaller_dim_str + "_" + dim_ratio_str;
+ 	else