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

libstdc++-10 std::allocator pointer removed #269

Open
seanbaxter opened this issue Oct 1, 2020 · 3 comments
Open

libstdc++-10 std::allocator pointer removed #269

seanbaxter opened this issue Oct 1, 2020 · 3 comments

Comments

@seanbaxter
Copy link
Contributor

seanbaxter commented Oct 1, 2020

I'm getting a build error at bslstl_bitset.t.cpp:1140

        ASSERTV(LINE, (X.to_string<char, native_std::char_traits<char>,
                           native_std::allocator<char> >() == s));

It took a long time to debug, but I have some info for you: That code tries to get typename std::allocator::pointer.

See /usr/include/c++/10/bits/allocator.h:115

  template<typename _Tp>
    class allocator : public __allocator_base<_Tp>
    {
    public:
      typedef _Tp        value_type;
      typedef size_t     size_type;
      typedef ptrdiff_t  difference_type;
#if __cplusplus <= 201703L
      typedef _Tp*       pointer;
      typedef const _Tp* const_pointer;
      typedef _Tp&       reference;
      typedef const _Tp& const_reference;

      template<typename _Tp1>
	struct rebind
	{ typedef allocator<_Tp1> other; };
#endif

pointer removed!

Possible I need to change my BDE cmake stuff to support libstdc++-10 with a 2020 __cplusplus macro.

Please advise.

@RMGiroux
Copy link
Contributor

RMGiroux commented Oct 1, 2020

Thanks, this is being tracked internally via ticket {DRQS 164056378}.

@seanbaxter
Copy link
Contributor Author

@AlisdairM Do these patches #268 address this?

@AlisdairM
Copy link
Contributor

Yes, I believe those should address the pointer issue until the internal QAed branch lands.

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