Skip to content

Commit

Permalink
Merge pull request #2961 from eseiler/infra/header_guard
Browse files Browse the repository at this point in the history
[INFRA] Replace pragma once with header guards in std module
  • Loading branch information
smehringer authored Apr 11, 2022
2 parents b4984bc + c28c550 commit e5c63f9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion include/seqan3/std/charconv
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
* \author Svenja Mehringer <svenja.mehringer AT fu-berlin.de>
*/

#pragma once
// File might be included from multiple libraries.
#ifndef SEQAN_STD_CHARCONV_SHIM
#define SEQAN_STD_CHARCONV_SHIM

#include <charconv>
#include <utility> // __cpp_lib_to_chars may be defined here as currently documented.
Expand Down Expand Up @@ -270,3 +272,5 @@ using ::seqan3::contrib::charconv_float::from_chars; // import our shim-float ve
} // namespace std

#endif // __cpp_lib_to_chars < 201611

#endif // SEQAN_STD_CHARCONV_SHIM
6 changes: 5 additions & 1 deletion include/seqan3/std/new
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
* \author Rene Rahn <rene.rahn AT fu-berlin.de>
*/

#pragma once
// File might be included from multiple libraries.
#ifndef SEQAN_STD_NEW_SHIM
#define SEQAN_STD_NEW_SHIM

#include <new>

Expand Down Expand Up @@ -40,3 +42,5 @@ inline constexpr std::size_t hardware_constructive_interference_size = 64;
} // namespace std

#endif // __cpp_lib_hardware_interference_size

#endif // SEQAN_STD_NEW_SHIM
6 changes: 5 additions & 1 deletion include/seqan3/std/ranges
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
* \author Hannes Hauswedell <hannes.hauswedell AT fu-berlin.de>
*/

#pragma once
// File might be included from multiple libraries.
#ifndef SEQAN_STD_RANGES_SHIM
#define SEQAN_STD_RANGES_SHIM

#include <iterator>
#include <ranges>
Expand Down Expand Up @@ -112,3 +114,5 @@ template<class T>
//!\endcond
inline constexpr bool enable_borrowed_range<T> = true;
} // namespace std::ranges

#endif // SEQAN_STD_RANGES_SHIM

1 comment on commit e5c63f9

@vercel
Copy link

@vercel vercel bot commented on e5c63f9 Apr 11, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

seqan3 – ./

seqan3-seqan.vercel.app
seqan3-git-master-seqan.vercel.app
seqan3.vercel.app

Please sign in to comment.