Skip to content

Commit

Permalink
chore: update to reflect #157, formatting, collapse another namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirdEyeSqueegee committed Oct 11, 2023
1 parent d8ade87 commit 3b3ad03
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CommonLibSF/include/REL/ID.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespace REL
Offset2ID(std::execution::sequenced_policy{})
{}

[[nodiscard]] constexpr std::uint64_t operator()(std::size_t a_offset) const;
[[nodiscard]] std::uint64_t operator()(std::size_t a_offset) const;

[[nodiscard]] constexpr const_iterator begin() const noexcept { return _offset2id.begin(); }

Expand Down
17 changes: 7 additions & 10 deletions CommonLibSF/include/REL/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,13 @@ namespace REL
}

#ifdef __cpp_lib_format
namespace std
template <class CharT>
struct std::formatter<REL::Version, CharT> : formatter<std::string, CharT>
{
template <class CharT>
struct formatter<REL::Version, CharT> : formatter<std::string, CharT>
template <class FormatContext>
constexpr auto format(const REL::Version a_version, FormatContext& a_ctx) const
{
template <class FormatContext>
constexpr auto format(const REL::Version a_version, FormatContext& a_ctx) const
{
return formatter<std::string, CharT>::format(a_version.string(), a_ctx);
}
};
}
return formatter<std::string, CharT>::format(a_version.string(), a_ctx);
}
};
#endif
2 changes: 1 addition & 1 deletion CommonLibSF/src/REL/ID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace REL
{
constexpr auto LookUpDir = "Data\\SFSE\\Plugins"sv;

[[nodiscard]] constexpr std::uint64_t Offset2ID::operator()(std::size_t a_offset) const
[[nodiscard]] std::uint64_t Offset2ID::operator()(std::size_t a_offset) const
{
const mapping_t elem{ 0, a_offset };
const auto it = std::ranges::lower_bound(
Expand Down
1 change: 1 addition & 0 deletions CommonLibSF/src/SFSE/API.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "SFSE/API.h"

#include "SFSE/Logger.h"

namespace SFSE
Expand Down
1 change: 1 addition & 0 deletions CommonLibSF/src/SFSE/Interfaces.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "SFSE/Interfaces.h"

#include "SFSE/API.h"
#include "SFSE/Logger.h"

Expand Down
1 change: 1 addition & 0 deletions CommonLibSF/src/SFSE/Logger.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "SFSE/Logger.h"

#include "SFSE/API.h"

#include <spdlog/sinks/basic_file_sink.h>
Expand Down

0 comments on commit 3b3ad03

Please sign in to comment.