Skip to content

Commit

Permalink
Fix build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Sep 9, 2024
1 parent 7442152 commit d7b5cc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xtd.core/include/xtd/basic_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ namespace xtd {
/// The following code example uses xtd::array::get_lower_bound and xtd::array::get_upper_bound to initialize a one-dimensional array and a multidimensional array.
/// @include array_get_lower_bound.cpp
constexpr size_type get_lower_bound(size_type dimension) const {
if (dimension >= rank()) throw_argument_out_of_range_exception(__FILE__, __LINE__, __func__);
if (dimension >= rank()) __throw_argument_out_of_range_exception(__FILE__, __LINE__, __func__);
return data_->lower_bound[dimension];
}

Expand All @@ -346,7 +346,7 @@ namespace xtd {
/// The following code example uses xtd::array::get_lower_bound and xtd::array::get_upper_bound to initialize a one-dimensional array and a multidimensional array.
/// @include array_get_lower_bound.cpp
constexpr size_type get_upper_bound(size_type dimension) const {
if (dimension >= rank()) throw_argument_out_of_range_exception(__FILE__, __LINE__, __func__);
if (dimension >= rank()) __throw_argument_out_of_range_exception(__FILE__, __LINE__, __func__);
return data_->upper_bound[dimension];
}

Expand All @@ -370,7 +370,7 @@ namespace xtd {
/// @exception xtd::argument_out_of_range_exception `index` is is greater than xtd::array::count.
/// @remarks xtd::array <type_t> allows duplicate elements.
void insert(size_type index, const type_t& value) override {
if (index > count()) __throw_argument_out_of_range_exception(__FILE__, __LINE__, __func__);
if (index > count()) ____throw_argument_out_of_range_exception(__FILE__, __LINE__, __func__);
data_->items.insert(to_base_type_iterator(begin()) + index, value);
}

Expand All @@ -388,7 +388,7 @@ namespace xtd {
/// @param index The zero-based index of the item to remove
/// @exception xtd::argument_out_of_range_exception `index` is greater than xtd::array::count.
void remove_at(size_type index) override {
if (index >= count()) __throw_argument_out_of_range_exception(__FILE__, __LINE__, __func__);
if (index >= count()) ____throw_argument_out_of_range_exception(__FILE__, __LINE__, __func__);

if (index == count() - 1) data_->items.pop_back();
else data_->items.erase(to_base_type_iterator(begin()) + index);
Expand Down

0 comments on commit d7b5cc0

Please sign in to comment.