updated build system

This commit is contained in:
Scott E. Graves 2024-08-02 13:01:00 -05:00
parent 2e46f2fead
commit 2a3c6f3522
2 changed files with 5 additions and 5 deletions

View File

@ -89,7 +89,7 @@ auto file::move_to(std::filesystem::path new_path) -> bool {
auto file::read(unsigned char *data, std::size_t to_read, std::uint64_t offset, auto file::read(unsigned char *data, std::size_t to_read, std::uint64_t offset,
std::size_t *total_read) -> bool { std::size_t *total_read) -> bool {
static static constexpr const std::string_view function_name{ static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__), static_cast<const char *>(__FUNCTION__),
}; };
@ -148,7 +148,7 @@ auto file::truncate(std::size_t size) -> bool {
auto file::write(const typename data_buffer::value_type *data, auto file::write(const typename data_buffer::value_type *data,
std::size_t to_write, std::size_t offset, std::size_t to_write, std::size_t offset,
std::size_t *total_written) -> bool { std::size_t *total_written) -> bool {
static static constexpr const std::string_view function_name{ static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__), static_cast<const char *>(__FUNCTION__),
}; };
@ -249,7 +249,7 @@ auto read_json_file(std::string_view path, nlohmann::json &data,
#else // !defined(PROJECT_ENABLE_LIBSODIUM) #else // !defined(PROJECT_ENABLE_LIBSODIUM)
auto read_json_file(std::string_view path, nlohmann::json &data) -> bool { auto read_json_file(std::string_view path, nlohmann::json &data) -> bool {
#endif // defined(PROJECT_ENABLE_LIBSODIUM) #endif // defined(PROJECT_ENABLE_LIBSODIUM)
static static constexpr const std::string_view function_name{ static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__), static_cast<const char *>(__FUNCTION__),
}; };
@ -305,7 +305,7 @@ auto write_json_file(std::string_view path, const nlohmann::json &data,
auto write_json_file(std::string_view path, auto write_json_file(std::string_view path,
const nlohmann::json &data) -> bool { const nlohmann::json &data) -> bool {
#endif // defined(PROJECT_ENABLE_LIBSODIUM) #endif // defined(PROJECT_ENABLE_LIBSODIUM)
static static constexpr const std::string_view function_name{ static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__), static_cast<const char *>(__FUNCTION__),
}; };

View File

@ -56,7 +56,7 @@ auto is_uid_member_of_group(const uid_t &uid, const gid_t &gid) -> bool {
} }
auto use_getpwuid(uid_t uid, passwd_callback_t callback) -> result { auto use_getpwuid(uid_t uid, passwd_callback_t callback) -> result {
static static constexpr const std::string_view function_name{ static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__), static_cast<const char *>(__FUNCTION__),
}; };