Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2008-03-01 10:23:16


On 03/01/08 07:52, Larry Evans wrote:
[snip]
>
> I'll be trying out indent.hpp after I'm done with the proto review.
>
I couldn't resist trying it now; however, I'm getting wrong output :(

The attached test driver (indent_test.cpp) is the same as the one
used for marg_ostream but modified to use indent.hpp as appropriate.

The expected output is shown in test_mout.cpp.out.
The actual output is shown in indent_test.cpp.out.

How can I get the expected output with indent.hpp?

-regards,
Larry

cd /home/evansl/prog_dev/boost-root.ln/boost_dev/libs/io/filters/tests/
make run
g++-3.3 -g -c -I../../../.. -o test_mout.o test_mout.cpp
g++-3.3 -v -o test_mout.exe test_mout.o ../../../../libs/io/filters/src/mout.o
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.2/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.2 (Debian)
 /usr/lib/gcc-lib/i486-linux/3.3.2/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o test_mout.exe /usr/lib/gcc-lib/i486-linux/3.3.2/../../../crt1.o /usr/lib/gcc-lib/i486-linux/3.3.2/../../../crti.o /usr/lib/gcc-lib/i486-linux/3.3.2/crtbegin.o -L/usr/lib/gcc-lib/i486-linux/3.3.2 -L/usr/lib/gcc-lib/i486-linux/3.3.2/../../.. test_mout.o ../../../../libs/io/filters/src/mout.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc-lib/i486-linux/3.3.2/crtend.o /usr/lib/gcc-lib/i486-linux/3.3.2/../../../crtn.o
./test_mout.exe
line1
  line1.1
    line1.1.1
  line1.2:unsigned=22
  line1.3:float=3.1416
line2:a_test=test{my_str=a_test string,my_dbl=9.999}

Compilation finished at Mon Dec 22 19:28:37


...updating 3 targets...
gcc.compile.c++ ../../bin.v2/sandbox/RowlandSchwarz/gcc-4.1/debug/link-static/indent_test.o
gcc.link ../../bin.v2/sandbox/RowlandSchwarz/gcc-4.1/debug/link-static/indent_test
testing.unit-test ../../bin.v2/sandbox/RowlandSchwarz/gcc-4.1/debug/link-static/indent_test.passed
line1
line1.1
line1.1.1
line1.2:unsigned=22
line1.3:float=3.1416
line2:a_test=:my_str=a_test string:my_dbl=9.999

(test*)0=(test*)0
&a_test=*(test*)=:my_str=a_test string:my_dbl=9.999

...updated 3 targets...

Compilation finished at Sat Mar 1 09:14:24



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk