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

Fix sorted_vector PMR test cases #1207

Closed
wants to merge 1 commit into from
Closed

Conversation

MrAnno
Copy link
Contributor

@MrAnno MrAnno commented Aug 23, 2019

folly::detail::std_pmr uses either std::pmr or std::experimental::pmr.

"Polymorphic Memory Resources" has been standardized in C++17, but pmr::resource_adaptor was left behind, which means resource_adaptor is not available when a C++17 ready standard library is detected by folly.

This commit reimplements test_resource without using the non-standard adaptor.

folly/test/sorted_vector_test.cpp:862:31: error: ‘folly::detail::std_pmr::resource_adaptor’ has not been declared
  862 | using folly::detail::std_pmr::resource_adaptor;
      |                               ^~~~~~~~~~~~~~~~

folly::detail::std_pmr uses either std::pmr or std::experimental::pmr.

Polymorphic Memory Resources has been standardized in C++17, but
pmr::resource_adaptor was left behind
(cplusplus/papers#33), which means
resource_adaptor is not available when a C++17 ready standard library is
detected by folly.

This commit reimplements test_resource without using the non-standard
adaptor.
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yfeldblum has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@yfeldblum merged this pull request in 74f346e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants