How can I use inline table
injae opened this issue · comments
Code
if(!deps) deps = cpptoml::make_table();
auto dep = deps->get_table(name);
if(!dep) dep = cpptoml::make_table();
dep->insert("module" ,cmake_name);
deps->insert(name, dep);
result
[dependencies]
[dependencies.cpptoml]
module = "cpptoml"
but I want results like this
[dependencies]
cpptoml = {module = "cpptoml"}
how can i use inline table
I'm having the same trouble. It looks like cpptoml can parse inline tables, but cannot write them out? I tried setting the is_inline to true when I called make_table_array, but it made no difference.
Writing inline tables seems not implemented. I would like to see this working properly as well.