77#include  " opentelemetry/common/key_value_iterable_view.h" 
88
99#include  < opentelemetry/nostd/span.h> 
10+ #include  < opentelemetry/nostd/type_traits.h> 
1011#include  < map> 
1112#include  < string> 
1213#include  < vector> 
@@ -106,7 +107,7 @@ class PropertyValue : public PropertyVariant
106107   * @param vec Vector of integral type primitives to convert to span. 
107108   * @return Span of integral type primitives. 
108109   */  
109-   template  <typename  T, std ::enable_if_t <std::is_integral<T>::value, bool > = true >
110+   template  <typename  T, nostd ::enable_if_t <std::is_integral<T>::value, bool > = true >
110111  static  nostd::span<const  T> to_span (const  std::vector<T> &vec)
111112  {
112113    nostd::span<const  T> result (vec.data (), vec.size ());
@@ -119,7 +120,7 @@ class PropertyValue : public PropertyVariant
119120   * @param vec Vector of float type primitives to convert to span. 
120121   * @return Span of float type primitives. 
121122   */  
122-   template  <typename  T, std ::enable_if_t <std::is_floating_point<T>::value, bool > = true >
123+   template  <typename  T, nostd ::enable_if_t <std::is_floating_point<T>::value, bool > = true >
123124  static  nostd::span<const  T> to_span (const  std::vector<T> &vec)
124125  {
125126    nostd::span<const  T> result (vec.data (), vec.size ());
@@ -139,7 +140,7 @@ class PropertyValue : public PropertyVariant
139140   * @param v 
140141   * @return 
141142   */  
142-   template  <typename  TInteger, std ::enable_if_t <std::is_integral<TInteger>::value, bool > = true >
143+   template  <typename  TInteger, nostd ::enable_if_t <std::is_integral<TInteger>::value, bool > = true >
143144  PropertyValue (TInteger number) : PropertyVariant(number)
144145  {}
145146
@@ -148,7 +149,7 @@ class PropertyValue : public PropertyVariant
148149   * @param v 
149150   * @return 
150151   */  
151-   template  <typename  TFloat, std ::enable_if_t <std::is_floating_point<TFloat>::value, bool > = true >
152+   template  <typename  TFloat, nostd ::enable_if_t <std::is_floating_point<TFloat>::value, bool > = true >
152153  PropertyValue (TFloat number) : PropertyVariant(double (number))
153154  {}
154155
0 commit comments