/*-----------------------------------------------------------------------------+ Author: Joachim Faulhaber Copyright (c) 2009-2009: Joachim Faulhaber +------------------------------------------------------------------------------+ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENCE.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +-----------------------------------------------------------------------------*/ namespace mini // minimal implementations for example projects { // A meta implementation of an the logarithm function on integrals template struct log_{ enum { value = 1 + log_::value }; }; template struct log_<1, Base>{ enum { value = 0 }; }; template struct log_<0, Base>{ enum { value = 0 }; }; template struct log2_{ enum { value = log_::value }; }; template struct power2_{ enum { value = 1 << Argument }; }; } // namespace mini