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

queue template constructors uncallable #23

Open
tamboril opened this issue Mar 29, 2016 · 1 comment
Open

queue template constructors uncallable #23

tamboril opened this issue Mar 29, 2016 · 1 comment

Comments

@tamboril
Copy link

Using queue with an allocator, it is impossible to write code that invokes this template constructor:

template <typename U>
    queue(size_type n, typename node_allocator::template rebind<U>::other const & alloc):

(or the other one with the rebind).

The template argument U cannot be deduced (at least with gcc 5.3.0).

I had to add the following form in order to use this with a custom allocator:

explicit queue(size_type n, allocator const & alloc)

I notice that the constructor that takes only an alloc already has this overload.

@star-e
Copy link

star-e commented Apr 16, 2019

This problem is still not fixed in boost 1.69, with msvc2019 v142.
Using custom allocator with lockfree::fixed_sized is impossible.

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

2 participants