mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
and same issue with is_convertible
This commit is contained in:
parent
f1042c5119
commit
6c5a5a5dae
|
@ -172,7 +172,7 @@ private:
|
||||||
|
|
||||||
// std::string attribute name
|
// std::string attribute name
|
||||||
// not integer or float type
|
// not integer or float type
|
||||||
template <typename T, typename = std::enable_if<!std::is_convertible_v<T, double>>::type>
|
template <typename T, typename = std::enable_if<!std::is_convertible<T, double>::value>::type>
|
||||||
void write_attribute(const std::string &name, T value)
|
void write_attribute(const std::string &name, T value)
|
||||||
{
|
{
|
||||||
current_part_serializer_->attribute(name, value);
|
current_part_serializer_->attribute(name, value);
|
||||||
|
@ -185,7 +185,7 @@ private:
|
||||||
|
|
||||||
// qname attribute name
|
// qname attribute name
|
||||||
// not integer or float type
|
// not integer or float type
|
||||||
template <typename T, typename = std::enable_if<!std::is_convertible_v<T, double>>::type>
|
template <typename T, typename = std::enable_if<!std::is_convertible<T, double>::value>::type>
|
||||||
void write_attribute(const xml::qname &name, T value)
|
void write_attribute(const xml::qname &name, T value)
|
||||||
{
|
{
|
||||||
current_part_serializer_->attribute(name, value);
|
current_part_serializer_->attribute(name, value);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user