Skip to content

-Wzero-as-null-pointer-constant leads to compiler error in g++ #48

@joernschellhaas

Description

@joernschellhaas

As of boost 1.72, I'm getting "error: zero as null pointer constant" when using e.g. boost::chrono::milliseconds. This can IMO be fixed by using nullptr instead.

I've spotted the following places, but there might be more:

  • duration.hpp:458
  • duration.hpp:481
  • duration_put.hpp:216
  • time_point.hpp:185

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions