Skip to content

volatile PointerType in alloc_fixed_pool.hpp #4

@mattpearson

Description

@mattpearson

https://github.com/saleyn/utxx/blob/master/include/utxx/alloc_fixed_pool.hpp#L81

When m_next is declared as volatile and PointerType is offset_ptr, compiler complains:

error: no matching function for call to ‘boost::interprocess::offset_ptr::offset_ptr(const volatile pointer_type&)’

Removing the volatile modifier for m_next resolves the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions