Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Smurf-IV opened this issue Jul 4, 2024 · 3 comments
Open

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

Smurf-IV opened this issue Jul 4, 2024 · 3 comments

Comments

@Smurf-IV
Copy link

Smurf-IV commented Jul 4, 2024

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

@trcrsired
Copy link
Member

trcrsired commented Jul 4, 2024

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
Copy link
Author

Smurf-IV commented Jul 5, 2024

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
Copy link
Member

trcrsired commented Jul 7, 2024

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants