This commit is contained in:
Timur A. Fatkhullin
2024-05-02 23:51:11 +03:00
parent 0d64e0cf44
commit 6de9127e58
5 changed files with 195 additions and 2 deletions

View File

@@ -36,7 +36,9 @@ static ValueT AdcFromChars(R&& range)
#ifdef _LIBCPP_VERSION // clang's libc++ does not have floating-point overloads for std::from_chars
if constexpr (traits::adc_is_any_v<v_t, char, int, long, long long, __int128>) {
#else
if constexpr (traits::adc_is_any_of_v<v_t, char, int, long, long long, __int128, float, double, long double>) {
if constexpr (traits::adc_is_any_of_v<v_t, unsigned char, char, unsigned short, short, unsigned long, long,
unsigned long long, long long, unsigned int, int, unsigned __int128, __int128,
float, double, long double>) {
#endif
v_t v;

View File

@@ -47,7 +47,7 @@ namespace adc
struct AdcValueHolderErrorCategory : public std::error_category {
AdcValueHolderErrorCategory() : std::error_category() {}
const char* name() const noexcept { return "DEVA_DEVICE_ATTRIBUTE"; }
const char* name() const noexcept { return "ADC_VALUEHOLDER_CATEGORY"; }
std::string message(int ec) const
{
@@ -404,6 +404,8 @@ protected:
}
public:
typedef SerializedT serialized_t;
/* CONSTRUCTORS AND DESTRUCTOR */
template <typename GT,