static, nbt, cassert, algoritmn, get exposed
Basically fix a bunch of stuff that came up in productionv1
parent
a44590c195
commit
04fd3aec8b
0
cmake-build-reldebug-asan/.cmake/api/v1/reply/cmakeFiles-v1-f35aa871f44e2fc7dd53.json
Normal file → Executable file
0
cmake-build-reldebug-asan/.cmake/api/v1/reply/cmakeFiles-v1-f35aa871f44e2fc7dd53.json
Normal file → Executable file
0
cmake-build-reldebug-asan/.cmake/api/v1/reply/directory-.-RelWithDebInfo-f5ebdc15457944623624.json
Normal file → Executable file
0
cmake-build-reldebug-asan/.cmake/api/v1/reply/directory-.-RelWithDebInfo-f5ebdc15457944623624.json
Normal file → Executable file
0
cmake-build-reldebug-asan/.cmake/api/v1/reply/target-BLT_TESTS-RelWithDebInfo-cd26a691ed5f8a807cdc.json
Normal file → Executable file
0
cmake-build-reldebug-asan/.cmake/api/v1/reply/target-BLT_TESTS-RelWithDebInfo-cd26a691ed5f8a807cdc.json
Normal file → Executable file
0
cmake-build-reldebug-asan/.cmake/api/v1/reply/toolchains-v1-34c4992596aa357843f9.json
Normal file → Executable file
0
cmake-build-reldebug-asan/.cmake/api/v1/reply/toolchains-v1-34c4992596aa357843f9.json
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/3.26.4/CompilerIdC/CMakeCCompilerId.c
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/3.26.4/CompilerIdC/CMakeCCompilerId.c
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/3.26.4/CompilerIdCXX/CMakeCXXCompilerId.cpp
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/3.26.4/CompilerIdCXX/CMakeCXXCompilerId.cpp
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/nbt/nbt_block.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/nbt/nbt_block.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/parse/argparse.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/parse/argparse.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/profiling/profiler.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/profiling/profiler.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/std/filesystem.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/std/filesystem.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/std/format.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/std/format.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/std/loader.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/std/loader.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/std/logging.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/std/logging.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/std/string.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/std/string.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/std/system.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT.dir/src/blt/std/system.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT_TESTS.dir/src/tests/main.cpp.o
Normal file → Executable file
0
cmake-build-reldebug-asan/CMakeFiles/BLT_TESTS.dir/src/tests/main.cpp.o
Normal file → Executable file
|
@ -14,6 +14,7 @@
|
|||
#include <optional>
|
||||
#include <blt/std/hashmap.h>
|
||||
#include <variant>
|
||||
#include <algorithm>
|
||||
|
||||
namespace blt
|
||||
{
|
||||
|
@ -314,6 +315,8 @@ namespace blt
|
|||
|
||||
void processFlag(arg_tokenizer& tokenizer, const std::string& flag);
|
||||
|
||||
public:
|
||||
|
||||
template<typename T>
|
||||
static inline bool holds_alternative(const arg_data_t& v)
|
||||
{
|
||||
|
|
|
@ -140,7 +140,7 @@ namespace blt::string {
|
|||
}
|
||||
|
||||
// https://stackoverflow.com/questions/3418231/replace-part-of-a-string-with-another-string
|
||||
bool replace(std::string& str, const std::string& from, const std::string& to) {
|
||||
static bool replace(std::string& str, const std::string& from, const std::string& to) {
|
||||
size_t start_pos = str.find(from);
|
||||
if(start_pos == std::string::npos)
|
||||
return false;
|
||||
|
@ -148,7 +148,7 @@ namespace blt::string {
|
|||
return true;
|
||||
}
|
||||
|
||||
void replaceAll(std::string& str, const std::string& from, const std::string& to) {
|
||||
static void replaceAll(std::string& str, const std::string& from, const std::string& to) {
|
||||
if(from.empty())
|
||||
return;
|
||||
size_t start_pos = 0;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
#include <blt/nbt/nbt.h>
|
||||
#include <blt/std/logging.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
|
|
Loading…
Reference in New Issue