siplasplas
A library for C++ reflection and introspection
cpp::DummyAssertExpression Class Reference

Represents an assert expression when SIPLASPLAS_ASSERT() macros are disabled. More...

#include <siplasplas/utility/assert.hpp>

Public Member Functions

template<typename Function >
DummyAssertExpressiononFailure (Function)
 Does nothing. More...
 
template<typename String , typename... Args>
DummyAssertExpressiondetail (String &&, Args &&...)
 Does nothing. More...
 
template<typename String , typename... Args>
DummyAssertExpressionoperator() (String &&, Args &&...)
 Does nothing. Equivalent to detail().
 

Detailed Description

Represents an assert expression when SIPLASPLAS_ASSERT() macros are disabled.

When siplasplas assertions are disabled DummyAssertExpression objects are instanced instead, and the expression does nothing.

Member Function Documentation

template<typename String , typename... Args>
DummyAssertExpression& cpp::DummyAssertExpression::detail ( String &&  ,
Args &&  ... 
)
inline

Does nothing.

This function template is defined only to make siplasplas assertions compile when are disabled. It does nothing.

Returns
A reference to *this to implement the assertion expression fluent interface.
template<typename Function >
DummyAssertExpression& cpp::DummyAssertExpression::onFailure ( Function  )
inline

Does nothing.

This function template is defined only to make siplasplas assertions compile when are disabled. It does nothing.

Returns
A reference to *this to implement the assertion expression fluent interface.

The documentation for this class was generated from the following file: