Skip to content

Commit

Permalink
Minor fixes and optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Jan 5, 2025
1 parent 64b1c0d commit 2f6d0c9
Show file tree
Hide file tree
Showing 24 changed files with 656 additions and 378 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1894,6 +1894,9 @@ if(WIN32)
# Silence C++20 deprecation warnings
hpx_add_config_cond_define(_SILENCE_ALL_CXX20_DEPRECATION_WARNINGS)

# Silence C++23 deprecation warnings
hpx_add_config_cond_define(_SILENCE_ALL_CXX23_DEPRECATION_WARNINGS)

# ASan is available in Visual Studion starting V16.8
if((MSVC_VERSION GREATER_EQUAL 1928) AND HPX_WITH_SANITIZERS)
hpx_add_target_compile_option(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ namespace hpx {
template <typename, typename>
friend class const_partitioned_vector_local_view_iterator;

DataType& dereference() const
DataType& dereference()
{
HPX_ASSERT(!is_at_end());
return this->base_reference()->data();
}
DataType const& dereference() const
{
HPX_ASSERT(!is_at_end());
return this->base_reference()->data();
Expand Down
Loading

0 comments on commit 2f6d0c9

Please sign in to comment.