forked from Alepha/Alepha
28 lines
658 B
C++
28 lines
658 B
C++
static_assert( __cplusplus > 2020'99 );
|
|
|
|
#include "../Capabilities.h"
|
|
|
|
#include <Alepha/Testing/test.h>
|
|
#include <Alepha/Testing/TableTest.h>
|
|
|
|
|
|
namespace
|
|
{
|
|
using namespace Alepha::exports::Capabilities_m;
|
|
|
|
struct capability_demo {};
|
|
struct missing_capability_demo {};
|
|
template< typename= Capabilities< capability_demo > >
|
|
struct Example_base {};
|
|
using Example= Example_base<>;
|
|
static_assert( HasCapability< Example, capability_demo > == true );
|
|
static_assert( HasCapability< Example, missing_capability_demo > == false );
|
|
template< HasCapability< missing_capability_demo > C >
|
|
void f( C ) {}
|
|
}
|
|
|
|
|
|
static auto init= Alepha::Utility::enroll <=[]
|
|
{
|
|
};
|