Skip to content

[Bug] fixed with a field size does not compile #768

Open
@Smurf-IV

Description

I could not find any example either

fast_io::io::print( dataFile, fixed( 1.2345f, 4 ), "a" );

gives

1>DumpPressure\include\fast_io.h(252,15): error C2338: static_assert failed: 'some types are not printable for print'

Using VS 17.10.3

Activity

trcrsired

trcrsired commented on Jul 4, 2024

@trcrsired
Member

Not really a bug. Not yet implemented for precision based floating point since the compilation time being too slow. Things like ryu contain big tables which is unaffordable for compilation time.

Smurf-IV

Smurf-IV commented on Jul 5, 2024

@Smurf-IV
Author

does not work if cast to a double either.
Should the Doc(s) be modified to state what you have above,
and Also add comment into the "Not allowed" compile message

trcrsired

trcrsired commented on Jul 7, 2024

@trcrsired
Member

does not work if cast to a double either. Should the Doc(s) be modified to state what you have above, and Also add comment into the "Not allowed" compile message

I initially thought to solve these problems by switching the library into modules when compiler support is available. Unfortunately, the entire C++ module situation is a shit show.

Recently, I tried to shift the library into a module, but the symbols just collided.

I was thought to solve a lot of issues including of lacking of documentations when modules are polished in compilers because I was thought to design this library with module not headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      [Bug] `fixed` with a field size does not compile · Issue #768 · cppfastio/fast_io