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

Issue#452 #470

Merged
merged 9 commits into from
Jan 17, 2024
Merged

Issue#452 #470

merged 9 commits into from
Jan 17, 2024

Conversation

jomorodi
Copy link
Contributor

The CMakeLists.txt was modified because Ubuntu 22.04 version had gcc version 11 which did not have the header and did not compile on my machine so i changed the conditional to allow for it to use the fmt::format library
The modification lead to updating the FormatHelper.h header to reflect the changes. in addition The fmt library was also added as dependency to the test target to enable the test compile on my machine
Estonia locaction data was added which includes EstoniaAddresses EstoniaCounties EstoniaStreetNames EstoniaStreetSuffixes

test was appended to the end of LocationTest using the test for denmark as a template
estonia was included in AddressCountry enum
finally, The estonia data was gotten from resource available on the internet and google maps so their is no guarantee that all the information are correct as i do not live in estonia. "
[issue#452 1be61dd] introduction of estonian location data The CMakeLists.txt was modified because Ubuntu 22.04 version had gcc version 11 which did not have the header and did not compile on my machine so i changed the conditional to allow for it to use the fmt::format library The modification lead to updating the FormatHelper.h header to reflect the changes. in addition The fmt library was also added as dependency to the test target to enable the test compile on my machine Estonia locaction data was added which includes EstoniaAddresses EstoniaCounties EstoniaStreetNames EstoniaStreetSuffixes test was appended to the end of LocationTest using the test for denmark as a template estonia was included in AddressCountry enum finally, The estonia data was gotten from resource available on the internet and google maps so their is no guarantee that all the information are correct as i do not live in estonia.

Kind regards

The CMakeLists.txt was modified because Ubuntu 22.04 version had gcc version 11 which did not have the <format> header and did not compile on my machine so i changed the conditional to allow for it to use the fmt::format library
The modification lead to updating the FormatHelper.h header to reflect the changes. in addition The fmt library was also added as dependency to the test target to enable the test compile on my machine
Estonia locaction data was added which includes EstoniaAddresses EstoniaCounties EstoniaStreetNames EstoniaStreetSuffixes
test was appended to the end of LocationTest using the test for denmark as a template
estonia was included in AddressCountry enum
finally, The estonia data was gotten from resource available on the internet and google maps so their is no guarantee that all the information are correct as i do not live in estonia.
@cieslarmichal
Copy link
Owner

Hello, good job! Please give a star to the repository to make the project more popular 🔥

@cieslarmichal
Copy link
Owner

Please fix failing pipelines

modified the test case, included the proper headers in location source file
modified CMake list by removing the dependency introduced inadverently for g++ version greater than 10
modified the EstoniaStreetNames by removing street suffixes
finally corrected error in arguement passed to the estonianadresses object
Copy link
Owner

@cieslarmichal cieslarmichal left a comment

Choose a reason for hiding this comment

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

I think its wrong, msvc and clang supports std::format, you could specify it for some version of clan less than

@cieslarmichal
Copy link
Owner

I think clang and msvc should stay the same

@jomorodi
Copy link
Contributor Author

I think clang and msvc should stay the same

okay i reverted back to the previos commit

@cieslarmichal
Copy link
Owner

Try to add more specified checks in format helper like defined(GNUC) && less than 12

@cieslarmichal
Copy link
Owner

Looks like in clang and msvc this if resolves to true and it tries to use fmt

@cieslarmichal
Copy link
Owner

Btw cant you install g++ 13? 😁

@jomorodi
Copy link
Contributor Author

Try to add more specified checks in format helper like defined(GNUC) && less than 12
ah ok i see the bug now.

@cieslarmichal
Copy link
Owner

cieslarmichal commented Jan 17, 2024

((defined(__GNUC__) && (__GNUC__ < 12)  && !defined(__clang__))

should work 😄

@jomorodi
Copy link
Contributor Author

looks like clang also defines gnuc

@jomorodi
Copy link
Contributor Author

Btw cant you install g++ 13? 😁

reason is i would need to use a third party ppa but i am trying to avoid any possible breaks on my OS. in addition , too lazy to manually compile the compiler . i do not understand the error message coming from msvc workflow i have not modified any of those document in this current branch. it could be an old issue

@cieslarmichal
Copy link
Owner

I know about msvc issue, if clang build will pass I will merge it :)

@cieslarmichal
Copy link
Owner

Issue is mentioned here: #469

@cieslarmichal cieslarmichal merged commit 3c2e65f into cieslarmichal:main Jan 17, 2024
3 of 4 checks passed
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