Skip to content

collection_size_type missing increment/decrement operators #192

Description

@geoffthemedio

Various places such as here use operator-- or operator++ of collection_size_type, but these are not defined.

This doesn't seem to be a problem for most compilers, but it's apparently causing compile errors with Fedora 32 for my project:

/usr/include/boost/serialization/vector.hpp: In function ‘void boost::serialization::save(Archive&, const std::vector<bool, Allocator>&, unsigned int)’:
/usr/include/boost/serialization/vector.hpp:191:16: error: no post-decrement operator for type
  191 |     while(count-- > 0){
      |                ^~

A minimal test case suggests the issue is with GCC 10.0.1

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