1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00

fix link error in VC++ (Issue #83)

This commit is contained in:
bolero-MURAKAMI 2016-03-08 17:23:19 +09:00
parent f0ba8fad5d
commit cb801ffef8

View file

@ -162,11 +162,11 @@ namespace sprout {
-2.838224957069370695926e78L \ -2.838224957069370695926e78L \
}} }}
template<typename T> template<typename T, typename X = void>
struct bernoulli_numbers; struct bernoulli_numbers;
template<> template<typename X>
struct bernoulli_numbers<float> { struct bernoulli_numbers<float, X> {
public: public:
typedef float type; typedef float type;
public: public:
@ -178,14 +178,15 @@ namespace sprout {
SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_INNER(SPROUT_BERNOULLI_TABLE_DEF_FLOAT) SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_INNER(SPROUT_BERNOULLI_TABLE_DEF_FLOAT)
; ;
}; };
SPROUT_CONSTEXPR_OR_CONST sprout::math::detail::bernoulli_numbers< template<typename X>
float SPROUT_CONSTEXPR_OR_CONST typename sprout::math::detail::bernoulli_numbers<
float, X
>::table_type sprout::math::detail::bernoulli_numbers< >::table_type sprout::math::detail::bernoulli_numbers<
float float, X
>::table SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_OUTER(SPROUT_BERNOULLI_TABLE_DEF_FLOAT); >::table SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_OUTER(SPROUT_BERNOULLI_TABLE_DEF_FLOAT);
template<> template<typename X>
struct bernoulli_numbers<double> { struct bernoulli_numbers<double, X> {
public: public:
typedef double type; typedef double type;
public: public:
@ -197,14 +198,15 @@ namespace sprout {
SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_INNER(SPROUT_BERNOULLI_TABLE_DEF_DOUBLE) SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_INNER(SPROUT_BERNOULLI_TABLE_DEF_DOUBLE)
; ;
}; };
SPROUT_CONSTEXPR_OR_CONST sprout::math::detail::bernoulli_numbers< template<typename X>
double SPROUT_CONSTEXPR_OR_CONST typename sprout::math::detail::bernoulli_numbers<
double, X
>::table_type sprout::math::detail::bernoulli_numbers< >::table_type sprout::math::detail::bernoulli_numbers<
double double, X
>::table SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_OUTER(SPROUT_BERNOULLI_TABLE_DEF_DOUBLE); >::table SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_OUTER(SPROUT_BERNOULLI_TABLE_DEF_DOUBLE);
template<> template<typename X>
struct bernoulli_numbers<long double> { struct bernoulli_numbers<long double, X> {
public: public:
typedef long double type; typedef long double type;
public: public:
@ -216,10 +218,11 @@ namespace sprout {
SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_INNER(SPROUT_BERNOULLI_TABLE_DEF_LONG_DOUBLE) SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_INNER(SPROUT_BERNOULLI_TABLE_DEF_LONG_DOUBLE)
; ;
}; };
SPROUT_CONSTEXPR_OR_CONST sprout::math::detail::bernoulli_numbers< template<typename X>
long double SPROUT_CONSTEXPR_OR_CONST typename sprout::math::detail::bernoulli_numbers<
long double, X
>::table_type sprout::math::detail::bernoulli_numbers< >::table_type sprout::math::detail::bernoulli_numbers<
long double long double, X
>::table SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_OUTER(SPROUT_BERNOULLI_TABLE_DEF_LONG_DOUBLE); >::table SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_OUTER(SPROUT_BERNOULLI_TABLE_DEF_LONG_DOUBLE);
# undef SPROUT_BERNOULLI_TABLE_DEF_FLOAT # undef SPROUT_BERNOULLI_TABLE_DEF_FLOAT