File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -308,17 +308,14 @@ static int s_VariantWithNoDefaultConstructibleUnderlyingType(struct aws_allocato
308
308
309
309
using NoDefaultConstructibleVariant = Aws::Crt::Variant<NoDefaultConstructibleTestType>;
310
310
311
- /* Regression test.
312
- * The __declspec(dllexport) directive exports class member function on Windows platform. We enable it when
313
- * building shared libraries. In the past, this directive caused msvc to generate special copy members for classes
314
- * containing Crt::Variant with copy-only underlying types, which led to compile-time errors. */
315
311
struct AWS_VARIANTTEST_WINDOWS_API NoDefaultConstructibleVariantTestResult
316
312
{
317
313
NoDefaultConstructibleVariant m_result;
318
314
};
319
315
320
316
NoDefaultConstructibleTestType testType (1 );
321
317
NoDefaultConstructibleVariant variant (testType);
318
+ NoDefaultConstructibleVariantTestResult testResult{variant};
322
319
323
320
return AWS_OP_SUCCESS;
324
321
}
You can’t perform that action at this time.
0 commit comments