Ambiguous call to abs

后端 未结 3 1034
执念已碎
执念已碎 2021-01-11 18:15

I have a custom data type that in practice can be either float or double. On every OS except OSX, I am able to successfully build this C++11 templa

3条回答
  •  走了就别回头了
    2021-01-11 18:21

    The solution was to explicitly #include on the OS X machine, as for some reason Visual Studio finds it in our dependencies and includes it, but clang does not. I will try to reproduce a similar chain of includes that our project has and reproduce the error in a minimalist way, as it may still be a problem either with Xcode or Visual Studio.

提交回复
热议问题