2 Commits (e96198e61c85f36b8ba1ab1baf9cbd68dcf6cd52)

Author SHA1 Message Date
Adriaan de Groot 31cfdf926c [libcalamares] Apply SPDX to utils/ 5 years ago
Adriaan de Groot b5c0158ec2 [libcalamares] Some if-method-exists trickery
This builds some machinery so that we can create
a detector for member-functions (methods) named <whatever>.
Use the macro to build the machinery:

DECLARE_HAS_METHOD(myFunction)

then after that,

has_myFunction<T>

is either std::true_type or std::false_type
depending on whether T has a method myFunction.
5 years ago