September 01, 2004
Couple of fixes for boost.

http://www.digitalmars.com/download/freecompiler.html



September 01, 2004
Walter wrote:
> Couple of fixes for boost.
> 
> http://www.digitalmars.com/download/freecompiler.html

I just tried the type traits with it, and it passes a lot more tests. I haven't tried it with the preprocessor library yet.

Unfortunately, one of the tests now crashes. The following reproduces the problem:

    #include <typeinfo>

    template <class X> struct test {};

    int main()
    {
        typeid(test<bool const volatile[2]>);
    }

Also, I found another bug. I don't think this one's new, I just thought it was due to one of the bugs you fixed. The following example prints out 'bool[const 2][3]' instead of 'const bool[2][3]'.

    #include <typeinfo>
    #include <iostream>

    int main()
    {
        typedef bool bool_array[2][3];
        std::cout<<typeid(const bool_array).name()<<'\n';
    }

I guess this one's not very high priority.

Thanks for the fixes. The const/volatile array one will be a great help.

Daniel