remove long long overloads for cell::value, let's see if this breaks anything

This commit is contained in:
Thomas Fussell 2017-01-04 21:15:29 -05:00
parent cc5952ec19
commit a0dea36605
2 changed files with 0 additions and 36 deletions

View File

@ -266,31 +266,6 @@ XLNT_API void cell::value(std::uint64_t i)
d_->type_ = type::numeric;
}
#ifdef _MSC_VER
template <>
XLNT_API void cell::value(unsigned long i)
{
d_->value_numeric_ = static_cast<long double>(i);
d_->type_ = type::numeric;
}
#endif
#ifdef __linux
template <>
XLNT_API void cell::value(long long i)
{
d_->value_numeric_ = static_cast<long double>(i);
d_->type_ = type::numeric;
}
template <>
XLNT_API void cell::value(unsigned long long i)
{
d_->value_numeric_ = static_cast<long double>(i);
d_->type_ = type::numeric;
}
#endif
template <>
XLNT_API void cell::value(float f)
{

View File

@ -560,17 +560,6 @@ public:
cell.value(static_cast<std::uint64_t>(3));
TS_ASSERT_EQUALS(cell.value<std::uint64_t>(), 3);
#ifdef __linux
cell.value(static_cast<long long>(3));
TS_ASSERT_EQUALS(cell.value<long long>(), 3);
cell.value(static_cast<unsigned long long>(3));
TS_ASSERT_EQUALS(cell.value<unsigned long long>(), 3);
#endif
cell.value(static_cast<std::uint64_t>(3));
TS_ASSERT_EQUALS(cell.value<std::uint64_t>(), 3);
cell.value(static_cast<float>(3.14));
TS_ASSERT_DELTA(cell.value<float>(), 3.14, 0.001);