From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-07-17 19:07:16


On Wednesday 17 July 2002 06:18 pm, Gennadiy Rozental wrote:
> Hi,
>
> Subject test does not seems to allocate anything under Sunpro 6.1
>
> Here an output:
>
> .../boost/libs/function/test/allocator_test.cpp(66) : error in
> "call_test_main": test alloc_count == 1 failed [0 != 1]
> .../boost/libs/function/test/allocator_test.cpp(67) : error in
> "call_test_main": test dealloc_count == 1 failed [0 != 1]
> .../libs/function/test/allocator_test.cpp(79) : error in "call_test_main":
> test alloc_count == 1 failed [0 != 1]
> .../boost/libs/function/test/allocator_test.cpp(80) : error in
> "call_test_main": test dealloc_count == 1 failed [0 != 1]
>
> Any ideas?
>
> Gennadiy.

Yup. BOOST_NO_STD_ALLOCATOR is getting defined for this compiler, so
Boost.Function doesn't try to use the allocator at all. The regression log
for this compiler
(http://boost.sourceforge.net/regression-logs/solaris.log.gz) shows that
BOOST_NO_STD_ALLOCATOR is getting defined (I didn't check if this is correct
behavior or not).

        Doug