Skip to content

Commit 107a78f

Browse files
committed
optional better to check with has_values()
1 parent d03f0e8 commit 107a78f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/applications/regression/Regression.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ TestRunner::TestRunner(const std::string& inputDir, const std::string& outputDir
2727

2828
void TestRunner::adjustParameters(cctag::Parameters& parameters)
2929
{
30-
if (_useCuda)
30+
if (_useCuda.has_value())
3131
parameters._useCuda = *_useCuda;
3232
}
3333

0 commit comments

Comments
 (0)