Skip to content

class char_wchar_holder does memory allocation to the heap. Request to use allocator template argument so this can be diverted to a specific allocator. #278

@cminnoy

Description

@cminnoy

Situation:

  • Recent versions use the class char_wchar_holder to hold the filename.
    Used in file_mapping.hpp, shared_memory_object.hpp and windows_shared_memory.hpp
    Issue:
  • On specific targets doing heap allocation ain't allowed, often for real-time requirements.
    Requested solution:
  • Adapt char_wchar_holder to use an alternative allocator as template argument.
  • Adapt the classes using char_wchar_holder to pass along the requested allocator.
  • Stick to STL allocator interfacing to maximize compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions