From b2519291387ac410e42accd6fdebecb1e84b74d8 Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Tue, 19 Nov 2013 08:32:56 +0100 Subject: [PATCH] Work on documentation --- doc/reference/c++/parameters/parameters.rst | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/doc/reference/c++/parameters/parameters.rst b/doc/reference/c++/parameters/parameters.rst index 17a43b98..6ec60035 100644 --- a/doc/reference/c++/parameters/parameters.rst +++ b/doc/reference/c++/parameters/parameters.rst @@ -142,9 +142,9 @@ Parameter default value example .. compileblock:: c - #include - #include - using namespace triqs::utility; + #include + using triqs::utility::parameters; + using triqs::utility::parameter_defaults; int main() { @@ -152,14 +152,10 @@ Parameter default value example P["Beta"] = 3.14; parameter_defaults pdef; - pdef.required - ( "Beta", double(), "Inverse temperature") - ; - pdef.optional - ( "Alpha", int(1000), "An integer") - ( "Gamma", double(0.9), "A double") - ; - + pdef.required("Beta", double(), "Inverse temperature") + .optional("Alpha", int(1000), "An integer") + .optional("Gamma", double(0.9), "A double"); + std::cout<