Skip to content

Commit

Permalink
Update to constexpr nullopt
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Oct 9, 2024
1 parent 5e4d99a commit 8db2edf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/xtd.core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,6 @@ add_sources(
src/xtd/math.cpp
src/xtd/memory_information.cpp
src/xtd/null.cpp
src/xtd/nullopt.cpp
src/xtd/object.cpp
src/xtd/operating_system.cpp
src/xtd/processor.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/xtd.core/include/xtd/nullopt.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ namespace xtd {
/// foo = nullopt; // reset the optional foo variable.
/// ```
/// @ingroup xtd_core types
extern core_export_ null_opt nullopt;
constexpr null_opt nullopt = std::nullopt;
}
3 changes: 0 additions & 3 deletions src/xtd.core/src/xtd/nullopt.cpp

This file was deleted.

0 comments on commit 8db2edf

Please sign in to comment.