Boost logo

Boost Users :

Subject: [Boost-users] Property tree example debug_settings.cpp
From: Mauricio Gomes (mgpensar_at_[hidden])
Date: 2010-02-25 21:33:06


Hi,

In
http://www.boost.org/doc/libs/1_42_0/libs/property_tree/examples/debug_settings.cppthe
FOREACH lines are commented out.

<debug>
    <filename>debug.log</filename>
    <modules>
        <module>Finance</module>
        <module>Admin</module>
        <module>HR</module>
    </modules>
    <level>2</level>
</debug>

Then I compiled and tested the program and noticed it wrote only one value
for the <modules> tag above.
Here it is the output:
  <?xml version="1.0" encoding="utf-8" ?>
 - <#> <debug>
   <filename>debug.log</filename>
   <level>2</level>
 - <#> <modules>
   <module>HR</module>
  </modules>
  </debug

What is the status of this library ? Is this a known bug or it is just the
example that is not uptodate ?
If the latter, can anyone provide a functional version of debug_settings.cpp
?

Thanks !

-- 
Mauricio


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net