enable_if_t isn't a thing in C++11

This commit is contained in:
JCrawfy 2020-04-26 15:47:53 +12:00
parent 504fed3585
commit f1042c5119

View File

@ -172,7 +172,7 @@ private:
// std::string attribute name
// not integer or float type
template <typename T, typename = std::enable_if_t<!std::is_convertible_v<T, double>>>
template <typename T, typename = std::enable_if<!std::is_convertible_v<T, double>>::type>
void write_attribute(const std::string &name, T value)
{
current_part_serializer_->attribute(name, value);
@ -185,7 +185,7 @@ private:
// qname attribute name
// not integer or float type
template <typename T, typename = std::enable_if_t<!std::is_convertible_v<T, double>>>
template <typename T, typename = std::enable_if<!std::is_convertible_v<T, double>>::type>
void write_attribute(const xml::qname &name, T value)
{
current_part_serializer_->attribute(name, value);