Skip to content

Commit de2b3bf

Browse files
committed
fix typo
1 parent 59fea65 commit de2b3bf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/MGIS/Utilities/Construct.ixx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)