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

Remove CROW_CAN_USE_CPP14 and CROW_CAN_USE_CPP17 macros #969

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

bugdea1er
Copy link
Contributor

Remove legacy configuration macros

They are no longer needed since Crow requires C++17

Removed:

  • CROW_CAN_USE_CPP14 and CROW_CAN_USE_CPP17 – C++17 required
  • CROW_FILESYSTEM_IS_EXPERIMENTAL – C++17 includes std::filesystem
  • CROW_GCC83_WORKAROUND – that was only for C++11

@bugdea1er
Copy link
Contributor Author

bugdea1er commented Jan 4, 2025

I haven't touch CROW_MSVC_WORKAROUND but it seems weird for C++17 not to have constexpr and noexcept?

#if defined(_MSC_VER)
#if _MSC_VER < 1900
#define CROW_MSVC_WORKAROUND
#define constexpr const
#define noexcept throw()
#endif
#endif

@gittiver
Copy link
Member

gittiver commented Jan 4, 2025

I agree, I pushed C++ standard to 17 some month ago.

@bugdea1er
Copy link
Contributor Author

bugdea1er commented Jan 5, 2025

@gittiver CodeQL actions fails, it can't find asio

Looks like it doesn't work on main too

@gittiver gittiver merged commit c148be0 into CrowCpp:master Jan 6, 2025
10 of 11 checks passed
@bugdea1er bugdea1er deleted the configuration branch January 6, 2025 13:46
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