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

warning: 'unique' is deprecated #10467

Closed
yurivict opened this issue Jun 21, 2024 · 0 comments · Fixed by #10480
Closed

warning: 'unique' is deprecated #10467

yurivict opened this issue Jun 21, 2024 · 0 comments · Fixed by #10480

Comments

@yurivict
Copy link

/usr/ports/misc/xgboost/work/xgboost-2.1.0/src/c_api/coll_c_api.cc:174:22: warning: 'unique' is deprecated [-Wdeprecated-declarations]
  174 |   while (!ptr->first.unique()) {
      |                      ^
/usr/include/c  /v1/__memory/shared_ptr.h:730:3: note: 'unique' has been explicitly marked deprecated here
  730 |   _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_HIDE_FROM_ABI bool unique() const _NOEXCEPT { return use_count() == 1; }
      |   ^
/usr/include/c  /v1/__config:1004:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
 1004 | #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
      |                                         ^
/usr/include/c  /v1/__config:977:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  977 | #      define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
      |                                                 ^
1 warning generated.
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

Successfully merging a pull request may close this issue.

1 participant