Skip to content

Comments

adding C interface without dep to C++ standard lib#370

Open
lemire wants to merge 5 commits intomainfrom
c_interface
Open

adding C interface without dep to C++ standard lib#370
lemire wants to merge 5 commits intomainfrom
c_interface

Conversation

@lemire
Copy link
Member

@lemire lemire commented Feb 24, 2026

The fast_float library does not depend on the standard C++ library at runtime, there is no need to link against the C++ standard library.

@@ -0,0 +1,31 @@
#ifndef __FAST_FLOAT_STRTOD_H__
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Include guards with double underscores are bad habits, this is a reserved name so has undefined behaviour! FAST_FLOAT_STRTOD_H would make a fine include guard :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I will fix this. Note that this is experimental and I will not be merging this PR immediately before it has received considerable review from others.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To give some more constructive feedback, this does seem like a useful addition.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!! Much appreciated. You have increased the probability that we will move forward ! ah ah

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

Successfully merging this pull request may close these issues.

2 participants