File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ namespace mgis {
2020 using NonConstType = std::remove_const_t <Type>;
2121 if constexpr (std::is_nothrow_constructible_v<NonConstType,
2222 ArgumentsTypes...>) {
23- return makestd::optional <Type>(std::forward<ArgumentsTypes>(args)...);
23+ return std::make_optional <Type>(std::forward<ArgumentsTypes>(args)...);
2424 } else {
2525 try {
26- return makestd::optional <Type>(std::forward<ArgumentsTypes>(args)...);
26+ return std::make_optional <Type>(std::forward<ArgumentsTypes>(args)...);
2727 } catch (...) {
2828 registerExceptionInErrorBacktrace (ctx, l);
2929 }
@@ -125,7 +125,7 @@ namespace mgis {
125125 return Type{std::forward<ArgumentsTypes>(args)...};
126126 } else {
127127 try {
128- return std::optional <Type>(std::forward<ArgumentsTypes>(args)...);
128+ return std::make_optional <Type>(std::forward<ArgumentsTypes>(args)...);
129129 } catch (...) {
130130 std::ignore =
131131 registerExceptionInErrorBacktraceWithoutSourceLocation (ctx);
You can’t perform that action at this time.
0 commit comments