bytedance / sonic-cpp

A fast JSON serializing & deserializing library, accelerated by SIMD.
Apache License 2.0
835 stars 101 forks source link

Error occurred when compiling the sample with ubuntu1804: json_pointer.h:46:18: error: ‘std::enable_if_t’ has not been declared #25

Closed yyt6801 closed 1 year ago

yyt6801 commented 1 year ago

Error occurred when compiling the sample with ubuntu1804: ./include/sonic/dom/json_pointer.h:46:18: error: ‘std::enable_if_t’ has not been declared
std::enable_if_t<std::is_integral::value, bool> = true>

Thanks for such an excellent open source project repository of ByteDance , and looking forward to better development, Expect to support more platforms, such as msvc

liuq19 commented 1 year ago

Are you use c++11 here? because enable_if_t is a c++14 feature. We will fix this problem to support c++11.

liuq19 commented 1 year ago

Thanks for your suggestions. arm64 and msvc will be supported in the future.

yyt6801 commented 1 year ago

There is no problem with the latest test example. Thanks for solving!