Skip to content
Snippets Groups Projects
Commit 8da126a1 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Deprecate the Hybrid::equals function

parent e12a1185
No related branches found
No related tags found
2 merge requests!1470Fix wrong variable name to make target hash (2.10),!1424Deprecate the Hybrid::equals function
Pipeline #73410 canceled
......@@ -113,6 +113,7 @@ In order to build the DUNE core modules you need at least the following software
- Remove in `dune/python/common/dimrange.hh` the `DimRange` specializations for
dune-typetree and dune-functions types. Those are moved to dune-functions.
- Deprecated `Hybrid::equals`. Use `Hybrid::equal_to` instead.
## Python: Changelog
......
......@@ -580,9 +580,11 @@ inline constexpr auto equal_to = hybridFunctor(std::equal_to<>{});
* If both types have a static member value, the result of comparing
* these is returned as std::integral_constant<bool, *>. Otherwise
* the result of a runtime comparison of t1 and t2 is directly returned.
*
* \deprecated
*/
template<class T1, class T2>
constexpr auto equals(T1&& t1, T2&& t2){
[[deprecated("Use Hybrid::equal_to instead!")]] constexpr auto equals(T1&& t1, T2&& t2){
return equal_to(std::forward<T1>(t1), std::forward<T2>(t2));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment