Skip to content
Snippets Groups Projects

Merge branch 'cleenup/deprecate-dune-disj-conj-neg-typetraits' into 'master'

Closed Simon Praetorius requested to merge cherry-pick-47b6d772 into releases/2.8
6 files
+ 12
129
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -424,25 +424,11 @@ namespace Std
* \ingroup CxxUtilities
**/
template< class... B >
struct conjunction;
template<>
struct conjunction<>
: std::true_type
{};
template< class B >
struct conjunction< B >
: B
{};
template< class B1, class... Bn >
struct conjunction< B1, Bn... >
: std::conditional_t< static_cast< bool >( B1::value ), conjunction< Bn... >, B1 >
struct [[deprecated("Will be removed after release 2.8. Use std::conjuction instead.")]] conjunction
: std::conjunction<B...>
{};
// disjunction
// -----------
@@ -454,22 +440,10 @@ namespace Std
* \ingroup CxxUtilities
**/
template< class... B >
struct disjunction;
template<>
struct disjunction<>
: std::false_type
struct [[deprecated("Will be removed after release 2.8. Use std::disjunction instead.")]] disjunction
: std::disjunction<B...>
{};
template< class B >
struct disjunction< B >
: B
{};
template< class B1, class... Bn >
struct disjunction< B1, Bn... >
: std::conditional_t< static_cast< bool >( B1::value ), B1, disjunction< Bn... > >
{};
// negation
// --------
@@ -482,7 +456,8 @@ namespace Std
* \ingroup CxxUtilities
**/
template<class B>
struct negation : public bool_constant<!static_cast<bool>(B::value)>
struct [[deprecated("Will be removed after release 2.8. Use std::negation instead.")]] negation
: std::negation<B>
{};
} // namespace Std
Loading