Skip to content

Commit

Permalink
using std::numeric_limits
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Jul 8, 2024
1 parent 69117ec commit 8efccda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/xtd.core.native.macos/include/xtd/native/macos/strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/// @endcond

#include <algorithm>
#include <limits>
#include <vector>
#include <sstream>
#include <string>
Expand Down Expand Up @@ -91,7 +92,7 @@ namespace xtd::native::macos {
return result;
}

static std::vector<std::string> split(const std::string& str, const std::vector<char>& separators, size_t count = 18446744073709551615u /*std::numeric_limits<size_t>::max()*/, bool remove_empty_entries = false) noexcept {
static std::vector<std::string> split(const std::string& str, const std::vector<char>& separators, size_t count = std::numeric_limits<size_t>::max(), bool remove_empty_entries = false) noexcept {
if (count == 0) return {};
if (count == 1) return {str};

Expand Down
3 changes: 2 additions & 1 deletion src/xtd.core/include/xtd/internal/__format_information.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
/// @endcond

#include <string>
#include <limits>

/// @cond
template<typename char_t>
struct __format_information {
size_t index = 18446744073709551615u; //std::numeric_limits<size_t>::max();
size_t index = std::numeric_limits<size_t>::max();
size_t location = 0;
std::basic_string<char_t> alignment;
std::basic_string<char_t> format;
Expand Down

0 comments on commit 8efccda

Please sign in to comment.