mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
remove long long overloads for cell::value, let's see if this breaks anything
This commit is contained in:
parent
cc5952ec19
commit
a0dea36605
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user