Opened 4 years ago

#13537 new Bugs

serializable unordered_map has incorrect template signature

Reported by: David Hawkes <daveh@…> Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost 1.67.0 Severity: Problem
Keywords: unordered_map serialization Cc:

Description

In boost/serialization/unordered_map.hpp the template signature looks like this:

template<
    class Archive, 
    class Key, 
    class HashFcn, 
    class EqualKey,
    class Allocator
>

Whereas it should be:

template<
    class Archive, 
    class Key,
    class Type,
    class HashFcn,
    class EqualKey,
    class Allocator
>

The consequence is that if a custom allocator is specified then the serialization will cause compiler errors due to there being insufficient template parameters.

Change History (0)

Note: See TracTickets for help on using tickets.