Skip to content
  • Nguyen, Thien Minh's avatar
    Fixes for Apple Clang 11 compiler · 0b0282b0
    Nguyen, Thien Minh authored
    
    
    - Wrap the HetMap helper func. for std::any workaround in ifdef.
    
    - Wno-deprecated-copy is not supported by Clang. Cppmicroservices has Werror flag, hence will cause error if it sees an unknown pragma.
    
    - bind2nd is removed in libstdc++, just use the generic bind w/ placeholder.
    
    - libstdc++ doesn't have std::beta in cmath/math.h. Detect this and use boost instead.
    
    - Explicitly specialize complex<dual> multiplication for autodiff. libstdc++ has a check for floating type which fails the dual type.
    
    - Clang doesn't allow lambda capture of structured binding.
    
    Tested by: compiler.
    
    Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
    0b0282b0