Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.3.0 fails to build with libc++ #289

Closed
jbeich opened this issue Apr 22, 2024 · 0 comments
Closed

v0.3.0 fails to build with libc++ #289

jbeich opened this issue Apr 22, 2024 · 0 comments

Comments

@jbeich
Copy link
Contributor

jbeich commented Apr 22, 2024

Regressed by #247. Affects libc++ 16/17/18 (didn't test trunk). Note, count() example builds fine.

$ export CXX=clang++ CXXFLAGS=-stdlib=libc++
$ cmake -B /tmp/hyprlock_build
$ cmake --build /tmp/hyprlock_build
[...]
src/renderer/widgets/Image.cpp:55:67: error: call to 'to_string' is ambiguous
   55 |     request.id        = std::string{"image:"} + path + ",time:" + std::to_string(modificationTime.time_since_epoch().count());
      |                                                                   ^~~~~~~~~~~~~~
/usr/include/c++/v1/string:4009:34: note: candidate function
 4009 | _LIBCPP_EXPORTED_FROM_ABI string to_string(int __val);
      |                                  ^
/usr/include/c++/v1/string:4010:34: note: candidate function
 4010 | _LIBCPP_EXPORTED_FROM_ABI string to_string(unsigned __val);
      |                                  ^
/usr/include/c++/v1/string:4011:34: note: candidate function
 4011 | _LIBCPP_EXPORTED_FROM_ABI string to_string(long __val);
      |                                  ^
/usr/include/c++/v1/string:4012:34: note: candidate function
 4012 | _LIBCPP_EXPORTED_FROM_ABI string to_string(unsigned long __val);
      |                                  ^
/usr/include/c++/v1/string:4013:34: note: candidate function
 4013 | _LIBCPP_EXPORTED_FROM_ABI string to_string(long long __val);
      |                                  ^
/usr/include/c++/v1/string:4014:34: note: candidate function
 4014 | _LIBCPP_EXPORTED_FROM_ABI string to_string(unsigned long long __val);
      |                                  ^
/usr/include/c++/v1/string:4015:34: note: candidate function
 4015 | _LIBCPP_EXPORTED_FROM_ABI string to_string(float __val);
      |                                  ^
/usr/include/c++/v1/string:4016:34: note: candidate function
 4016 | _LIBCPP_EXPORTED_FROM_ABI string to_string(double __val);
      |                                  ^
/usr/include/c++/v1/string:4017:34: note: candidate function
 4017 | _LIBCPP_EXPORTED_FROM_ABI string to_string(long double __val);
      |                                  ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant