////////////////////////////////////////////////////
string ini = ` value1 = Some text value2 = 9856428642 `; static struct AppConfigsDefault { enum string value1 = "Ultimate Question of Life, the Universe, and Everything"; enum size_t value2 = 42; } alias AppConfigs = ConfigsTrait!AppConfigsDefault; AppConfigs cfg; assert(cfg.value1 == AppConfigsDefault.value1); assert(cfg.value2 == AppConfigsDefault.value2); try { cfg.initSrc (ini); } catch (IniConfigsException e) { assert(0); } assert(cfg.value1 == "Some text"); assert(cfg.value2 == 9856428642);