From 18635d489abbbc24313fa32842905f47101440d0 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 31 Jan 2024 21:17:45 -0600 Subject: [PATCH] branch2.cpp --- src/branch2.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/branch2.cpp b/src/branch2.cpp index 79d61a44..76a79322 100644 --- a/src/branch2.cpp +++ b/src/branch2.cpp @@ -1,5 +1,7 @@ #include "branch2.hpp" +#include + Branch2::Branch2() : mode(Mode::RW) @@ -10,9 +12,11 @@ Branch2::Branch2() Branch2::Branch2(toml::value const &v_) : mode(Mode::RW) { + std::cout << v_ << '\n'; + enabled = v_.at("enabled").as_boolean(); mode = Mode::_from_string(toml::find(v_,"mode").c_str()); min_free_space = 0; path = toml::find(v_,"path"); - printf("%s\n",path.string().c_str()); + }