mcc_bsplines.h: use of FC_GLOBAL macro to correct call FITPACK
subroutines mangled names fitpack/CMakeLists.txt: add non-empty SYMBOL_NAMESPACE to fix generated 'insert' macro (interference with STL containers 'insert' methods) macro issue various fixes
This commit is contained in:
@@ -107,19 +107,14 @@ template <typename T>
|
||||
concept mcc_keyvalue_desc_c = requires(T t) { []<mcc_keyvalue_record_c... Ts>(std::tuple<Ts...>) {}(t); };
|
||||
|
||||
|
||||
namespace constants
|
||||
{
|
||||
|
||||
static constexpr char MCC_KV_COMMENT_SEQ_ARR[] = "#";
|
||||
static constexpr char MCC_KV_KEY_VALUE_DELIM_SEQ_ARR[] = "=";
|
||||
static constexpr char MCC_KV_COMPOSITE_VALUE_DELIM_SEQ_ARR[] = ",";
|
||||
|
||||
} // namespace constants
|
||||
|
||||
|
||||
template <mcc_keyvalue_desc_c DESCR_T,
|
||||
const char* COMM_SEQ = constants::MCC_KV_COMMENT_SEQ_ARR, // comment char sequence
|
||||
const char* KV_DELIM = constants::MCC_KV_KEY_VALUE_DELIM_SEQ_ARR // key-value delimiter
|
||||
const char* COMM_SEQ = MCC_KV_COMMENT_SEQ_ARR, // comment char sequence
|
||||
const char* KV_DELIM = MCC_KV_KEY_VALUE_DELIM_SEQ_ARR // key-value delimiter
|
||||
>
|
||||
class MccKeyValueHolder
|
||||
{
|
||||
@@ -132,12 +127,12 @@ public:
|
||||
|
||||
static constexpr std::string_view DEFAULT_RECORD_DELIMITER{"\n"};
|
||||
|
||||
static constexpr std::string_view COMMENT_SEQ{COMM_SEQ == nullptr ? constants::MCC_KV_COMMENT_SEQ_ARR
|
||||
: COMM_SEQ[0] == '\0' ? constants::MCC_KV_COMMENT_SEQ_ARR
|
||||
static constexpr std::string_view COMMENT_SEQ{COMM_SEQ == nullptr ? MCC_KV_COMMENT_SEQ_ARR
|
||||
: COMM_SEQ[0] == '\0' ? MCC_KV_COMMENT_SEQ_ARR
|
||||
: COMM_SEQ};
|
||||
|
||||
static constexpr std::string_view KEY_VALUE_DELIM{KV_DELIM == nullptr ? constants::MCC_KV_KEY_VALUE_DELIM_SEQ_ARR
|
||||
: KV_DELIM[0] == '\0' ? constants::MCC_KV_KEY_VALUE_DELIM_SEQ_ARR
|
||||
static constexpr std::string_view KEY_VALUE_DELIM{KV_DELIM == nullptr ? MCC_KV_KEY_VALUE_DELIM_SEQ_ARR
|
||||
: KV_DELIM[0] == '\0' ? MCC_KV_KEY_VALUE_DELIM_SEQ_ARR
|
||||
: KV_DELIM};
|
||||
|
||||
static constexpr size_t NUMBER_OF_RECORDS = std::tuple_size_v<DESCR_T>;
|
||||
|
||||
Reference in New Issue
Block a user