Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Programming in C++ 2022
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sdlbio-courses
Programming in C++ 2022
Commits
f40bba52
Commit
f40bba52
authored
3 years ago
by
Sandipan Mohanty
Browse files
Options
Downloads
Patches
Plain Diff
Redirecting headers for format and ranges
parent
c49e6092
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
code/include/cxx20format
+13
-0
13 additions, 0 deletions
code/include/cxx20format
code/include/cxx20ranges
+14
-0
14 additions, 0 deletions
code/include/cxx20ranges
with
27 additions
and
0 deletions
code/include/cxx20format
0 → 100644
+
13
−
0
View file @
f40bba52
#include <version>
#ifdef __cpp_lib_format
#include<format>
namespace fmt = std;
using std::format;
#elif __has_include (<fmt/format.h>)
#define FMT_HEADER_ONLY
#include<fmt/core.h>
#include<fmt/format.h>
using fmt::format;
#warning Using external format.h header from the fmt library.
#endif
This diff is collapsed.
Click to expand it.
code/include/cxx20ranges
0 → 100644
+
14
−
0
View file @
f40bba52
#include <version>
#ifdef __cpp_lib_ranges
#include<ranges>
namespace sr = std::ranges;
namespace sv = std::views;
#elif __has_include (<range/v3/all.hpp>)
#include<range/v3/all.hpp>
namespace sr = ranges;
namespace sv = ranges::views;
#warning Using rangesv3 3rd party library
#else
#error No suitable header for C++20 ranges was found!
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment