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

Compilation fails: static assertion failed due to requirement 'is_unsigned<int>::value' #838

Open
yurivict opened this issue Oct 30, 2024 · 2 comments

Comments

@yurivict
Copy link
Contributor

In file included from /wrkdirs/usr/ports/math/g2o/work/g2o-20230806_git/g2o/examples/sphere/create_sphere.cpp:35:
In file included from /wrkdirs/usr/ports/math/g2o/work/g2o-20230806_git/g2o/stuff/sampler.h:36:
In file included from /usr/include/c++/v1/random:1707:
/usr/include/c++/v1/__random/seed_seq.h:84:17: error: static assertion failed due to requirement 'is_unsigned<int>::value': [rand.util.seedseq]/7 requires the value_type of the iterator to be an unsigned integer capable of accommodating 32-bit quantities.
   84 |   static_assert(is_unsigned<_ValueType>::value && sizeof(_ValueType) >= sizeof(uint32_t),
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/math/g2o/work/g2o-20230806_git/g2o/examples/sphere/create_sphere.cpp:165:13: note: in instantiation of function template specialization 'std::seed_seq::generate<std::__wrap_iter<int *>>' requested here
  165 |     seedSeq.generate(seeds.begin(), seeds.end());
      |             ^
1 error generated.

log

clang-18
Version: 20230806
FreeBSD 14.1

@wangzheqie
Copy link

wangzheqie commented Oct 30, 2024 via email

@RainerKuemmerle
Copy link
Owner

@yurivict This might already be fixed on master. As I do not have a FreeBSD machine running currently, would be great if you could build the master branch. Thank you.

https://github.com/RainerKuemmerle/g2o/blob/master/g2o/examples/sphere/create_sphere.cpp#L164

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

3 participants