Skip to content

Commit

Permalink
Units.h fix
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Jul 25, 2013
1 parent 2e1da0a commit 448d4f3
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Util/include/Poco/Util/Units.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,6 @@ Value<V, Power<U, Num, Den> > raise(const Value<V, U>& a)

namespace Internal
{
#ifndef POCO_ENABLE_CPP11
template <bool> struct static_assert;
template <> struct static_assert<true> { };
/// Ensures (at compile-time) that the template argument is true.
#endif

template <typename T1, typename T2>
struct Convertible;

Expand Down Expand Up @@ -376,12 +370,8 @@ namespace Internal
/// specialize this template.
/// The default implementation falls through to Convert2.
{
#ifdef POCO_ENABLE_CPP11
static_assert(Convertible<T1,T2>::Value, "Error: Value not convertible.");
#else
static_assert<Convertible<T1,T2>::Value> checkConvertible;
#endif
/// If this fails, then T1 is not Convertible to T2:
/// If this fails, then T1 is not Convertible to T2:
poco_static_assert ((Convertible<T1,T2>::Value));

template <typename V>
static V fn(const V& v)
Expand Down

0 comments on commit 448d4f3

Please sign in to comment.