Files
scully/inc/lexertl/compile_assert.hpp

25 lines
559 B
C++
Raw Normal View History

2013-05-31 21:35:44 +02:00
// compile_assert.hpp
// Copyright (c) 2010-2012 Ben Hanson (http://www.benhanson.net/)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file licence_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef LEXERTL_COMPILE_ASSERT_H
#define LEXERTL_COMPILE_ASSERT_H
namespace lexertl
{
// Named template param for compiler compatibility
template<bool b>
struct compile_assert;
// enum for compiler compatibility
template<>
struct compile_assert<true>
{
enum {value = 1};
};
}
#endif