Skip to content

Commit

Permalink
Merge pull request #10 from rqb500/master
Browse files Browse the repository at this point in the history
Change the judgment criteria of C++ standard
  • Loading branch information
trcrsired committed Feb 24, 2022
2 parents ff7e386 + 672d280 commit 3cf2ada
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/fast_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#error "You are not using a C++ compiler"
#endif

#if defined(__GNUC__) && __GNUC__>=11 && __cplusplus<202002L
#if !defined(__cpp_concepts)
#error "fast_io requires at least C++20 standard compiler."
#else
#include"fast_io_hosted.h"
Expand Down
2 changes: 1 addition & 1 deletion include/fast_io_concept.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#pragma warning( disable : 4820 )
#pragma warning( disable : 5027 )
#endif
#if defined(__GNUC__) && __GNUC__>=11 && __cplusplus<202002L
#if !defined(__cpp_concepts)
#error "fast_io requires at least a C++20 standard compiler."
#else
#include<concepts>
Expand Down
2 changes: 1 addition & 1 deletion include/fast_io_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#error "You are not using a C++ compiler"
#endif

#if defined(__GNUC__) && __GNUC__>=11 && __cplusplus<202002L
#if !defined(__cpp_concepts)
#error "fast_io requires at least C++20 standard compiler."
#else
#include"fast_io_concept.h"
Expand Down
2 changes: 1 addition & 1 deletion include/fast_io_crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#error "You are not using a C++ compiler"
#endif

#if defined(__GNUC__) && __GNUC__>=11 && __cplusplus<202002L
#if !defined(__cpp_concepts)
#error "fast_io requires at least C++20 standard compiler."
#else

Expand Down
2 changes: 1 addition & 1 deletion include/fast_io_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#error "You are not using a C++ compiler"
#endif

#if defined(__GNUC__) && __GNUC__>=11 && __cplusplus<202002L
#if !defined(__cpp_concepts)
#error "fast_io requires at least C++20 standard compiler."
#else
//fast_io_devices.h defines commonly used io devices and their correlated mutex verisons.
Expand Down
2 changes: 1 addition & 1 deletion include/fast_io_freestanding.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#error "You are not using a C++ compiler"
#endif

#if defined(__GNUC__) && __GNUC__>=11 && __cplusplus<202002L
#if !defined(__cpp_concepts)
#error "fast_io requires at least C++20 standard compiler."
#else

Expand Down
2 changes: 1 addition & 1 deletion include/fast_io_hosted.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For hosted implementations the set of standard library headers required by the C
#error "You are not using a C++ compiler"
#endif

#if defined(__GNUC__) && __GNUC__>=11 && __cplusplus<202002L
#if !defined(__cpp_concepts)
#error "fast_io requires at least C++20 standard compiler."
#else
#include"fast_io_freestanding.h"
Expand Down
2 changes: 1 addition & 1 deletion include/fast_io_i18n.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#error "You are not using a C++ compiler"
#endif

#if defined(__GNUC__) && __GNUC__>=11 && __cplusplus<202002L
#if !defined(__cpp_concepts)
#error "fast_io requires at least C++20 standard compiler."
#else
#include"fast_io_hosted.h"
Expand Down
2 changes: 1 addition & 1 deletion include/fast_io_legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#error "You are not using a C++ compiler"
#endif

#if defined(__GNUC__) && __GNUC__>=11 && __cplusplus<202002L
#if !defined(__cpp_concepts)
#error "fast_io requires at least C++20 standard compiler."
#else
//fast_io_legacy.h deals with legacy C++ <iostream>/<fstream>/<sstream> interface
Expand Down

0 comments on commit 3cf2ada

Please sign in to comment.