source: liblaziness/assert.h @ 19

Last change on this file since 19 was 4, checked in by artyom, 13 years ago

liblaziness

File size: 310 bytes
RevLine 
[4]1#ifndef __ASSERT_H__
2#define __ASSERT_H__
3#include <type_traits>
4
5template <bool> class _assert;
6
7template <> class _assert<true> { };
8
9template<typename T, typename U, bool suppress = false>
10class _assert_subclass
11        : _assert<suppress || std::is_base_of<U, T>::value || std::is_same<U, T>::value>
12{
13};
14
15#endif
Note: See TracBrowser for help on using the repository browser.