Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
victimsnino committed Nov 22, 2024
1 parent 23da9bc commit 0fd812a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rpp/rpp/observers/details/fwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ namespace rpp::details::observers
static_assert(mode == disposables_mode::Auto || mode == disposables_mode::None || mode == disposables_mode::External || mode == disposables_mode::Boolean);

#if defined(RPP_DISABLE_DISPOSABLES_OPTIMIZATION) and RPP_DISABLE_DISPOSABLES_OPTIMIZATION
if constexpr (mode == disposables_mode::External)
return static_cast<composite_disposable_wrapper*>(nullptr);
return static_cast<default_disposables_strategy*>(nullptr);

Check failure on line 80 in src/rpp/rpp/observers/details/fwd.hpp

View workflow job for this annotation

GitHub Actions / benchmarks ci-ubuntu-clang Release (Optimizations disabled)

'auto' in return type deduced as 'rpp::details::observers::default_disposables_strategy' (aka 'local_disposables_strategy<disposables::dynamic_disposables_container>') here but deduced as 'rpp::composite_disposable_wrapper' (aka 'disposable_wrapper_impl<rpp::interface_composite_disposable>') in earlier return statement
#else
if constexpr (mode == disposables_mode::Auto)
Expand Down

0 comments on commit 0fd812a

Please sign in to comment.