mcc_epoch.h: fix operator=(std::chrono::time_point)

class MccKeyValueHolder: developing ...
This commit is contained in:
Timur A. Fatkhullin
2026-05-17 22:33:31 +03:00
parent 3dbe4c12b7
commit 9630751a4d
3 changed files with 108 additions and 91 deletions

View File

@@ -21,12 +21,22 @@ cc= 2026-05-15T05:53:20.921723918 # date UTC
)--";
static std::string STR1 = R"--(
aaa = dewl_ewkj23+23998
#
# this is obs date
cc= 2026-05-15T05:53:20.921723918 # date UTC
)--";
int main()
{
// MccKeyValueHolder<decltype(kv_desc)> kv(kv_desc);
MccKeyValueHolder kv(kv_desc);
auto err = kv.fromCharRange(STR);
// auto err = kv.fromCharRange(STR);
auto err = kv.fromCharRange(STR1);
if (err) {
std::println("ERR = {}", err);
return 1;
@@ -56,7 +66,13 @@ int main()
return 1;
}
std::println("{}", buff);
std::println("--(\n{}\n)--'", buff);
std::print("KEYS: ");
for (auto const& k : kv.keys()) {
std::print("{} ", k);
}
std::println("");
return 0;
}