Skip to content

The chrono stringmaker implicitly assumes that the duration is default #2685

@gabm

Description

@gabm

Describe the bug

I cant compile a test case with a "non-standard time_point" (see blow) against catch v3. The bug is present in catch v2, but there the stringmaker for chrono was disabled.

Expected behavior

it should compile :)

Reproduction steps

TEST_CASE("chrono") {
	std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> tp1, tp2;
	CHECK(tp1 == tp2);
}

Platform information:

  • OS: Windows 10
  • Compiler+version: vs2019
  • Catch version: v3.3.2

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions