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...
 

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 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.

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

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