V2 and clang16 compatibility #462
-
I am trying out the new version of the library and it compiles successfully with gcc13 but not with clang16 & libc++16. There are compile errors like: magnitude.h:504:44: error: sorry, non-type template argument of type 'long double' is not yet supported
quantity_spec.h:641:57: error: template template argument has different template parameters than its corresponding template template parameter
quantity_spec.h:748:10: error: no viable constructor or deduction guide for deduction of template arguments of 'explode_result'
#... What is the plan in terms of clang? wait for llvm to implement or make workarounds? btw, brilliant library. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
I am happy that you like the library! Yes, some compilers are not yet up to speed with C++20 implementation. When I am done with V2 (I still need to clean up unit tests), release 0.8.0 from mainline, and put V2 on master branch for gcc-12+ I will try to port it to other compilers as well (clang, MSVC, and older versions of gcc). We also need a total rewrite of docs for V2. That's a lot of work so any help is appreciated. |
Beta Was this translation helpful? Give feedback.
I am happy that you like the library!
Yes, some compilers are not yet up to speed with C++20 implementation. When I am done with V2 (I still need to clean up unit tests), release 0.8.0 from mainline, and put V2 on master branch for gcc-12+ I will try to port it to other compilers as well (clang, MSVC, and older versions of gcc). We also need a total rewrite of docs for V2. That's a lot of work so any help is appreciated.