We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bdb707 commit 87a566eCopy full SHA for 87a566e
1 file changed
include/codi/expressions/complex/stdComplex.hpp
@@ -199,6 +199,31 @@ namespace codi {
199
200
return *this;
201
}
202
+
203
+#if CODI_HasCpp20
204
+ using Base::real;
205
206
+ template<typename Arg>
207
+ void real(ExpressionInterface<InnerReal, Arg> const& arg) {
208
+ Base::values[0] = arg;
209
+ }
210
211
+ void real(InnerReal const& arg) {
212
213
214
215
+ using Base::imag;
216
217
218
+ void imag(ExpressionInterface<InnerReal, Arg> const& arg) {
219
+ Base::values[1] = arg;
220
221
222
+ void imag(InnerReal const& arg) {
223
224
225
226
+#endif
227
};
228
229
namespace RealTraits {
0 commit comments