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

constexpr uuid from string #89

Open
tobias-loew opened this issue Dec 21, 2018 · 3 comments
Open

constexpr uuid from string #89

tobias-loew opened this issue Dec 21, 2018 · 3 comments

Comments

@tobias-loew
Copy link

Hi,
while searching for constexpr GUID from string generators, I found https://gist.github.com/AlexBAV/b58e92d7632bae5d6f5947be455f796f
which inspired me to generate a C++11 consexpr version plus boost-uuid generators.
If you're interested, please have a look at https://github.com/tobias-loew/constexpr-GUID-cpp-11

Tobias

@jeking3
Copy link
Collaborator

jeking3 commented May 14, 2019

It's an interesting concept, although my assumption is the vast majority of uuid-from-string comes from variable input at runtime, not compile-time?

@tobias-loew
Copy link
Author

My use-case are e.g. windows CLSIDs and other fixed uuid that are statically compiled into the program. Here you can get the benefits of consistency checks at compile-time.

@jeking3
Copy link
Collaborator

jeking3 commented May 14, 2019

Okay that makes sense. Thanks.

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