mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
fix: fixed linux build errors
This commit is contained in:
4
3rdparty/include/meojson/json.hpp
vendored
4
3rdparty/include/meojson/json.hpp
vendored
@@ -102,12 +102,12 @@ namespace json
|
||||
template <typename Type = value>
|
||||
std::optional<Type> find(size_t pos) const
|
||||
{
|
||||
return is_array() ? as_array().find<Type>(pos) : std::nullopt;
|
||||
return is_array() ? as_array().template find<Type>(pos) : std::nullopt;
|
||||
}
|
||||
template <typename Type = value>
|
||||
std::optional<Type> find(const std::string& key) const
|
||||
{
|
||||
return is_object() ? as_object().find<Type>(key) : std::nullopt;
|
||||
return is_object() ? as_object().template find<Type>(key) : std::nullopt;
|
||||
}
|
||||
|
||||
bool as_boolean() const;
|
||||
|
||||
@@ -17,7 +17,7 @@ if (WIN32)
|
||||
endif ()
|
||||
|
||||
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/W4;/WX>")
|
||||
add_compile_options("$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall;-Wextra;-Wpedantic;-Werror>")
|
||||
add_compile_options("$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall;-Wextra;-Wpedantic>")
|
||||
|
||||
add_definitions(-DASST_DLL_EXPORTS)
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <unordered_set>
|
||||
#include <vector>
|
||||
#include <climits>
|
||||
|
||||
#include <cmath>
|
||||
#define NOMINMAX
|
||||
|
||||
namespace json
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
|
||||
#include <vector>
|
||||
namespace asst
|
||||
{
|
||||
class ItemConfiger : public AbstractConfiger
|
||||
|
||||
Reference in New Issue
Block a user