Boost logo

Boost Users :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2006-11-23 13:56:22


Hi Ovanes,

> using the C++ preprocessor macro to generate map of 150 types works
> fine and code which uses the new mapN type compiles and runs fine as
> well.

Glad to hear that!

> We have successfully tested it with 115 elements.
>
> Then we tried to switch to the second approach with pregenerated
> types. The problem we face is that the python script generates empty
> headers.
>
> To avoid all errors we just copied
> <boost_root>\boost\mpl\map\map50.hpp to
> <boost_root>\boost\mpl\map\map60.hpp and changed the file
> accordingly. Here the modified source:
>
> //
> // Distributed under the Boost Software License, Version 1.0.
> // (See accompanying file LICENSE_1_0.txt or copy at
> // http://www.boost.org/LICENSE_1_0.txt)
> //
> // See http://www.boost.org/libs/mpl for documentation.
>
> // $Source: /cvsroot/boost/boost/boost/mpl/map/map50.hpp,v $
                                                 ^^^^^^^^^
                                                 map60.hpp

> But the resulting files in pregenerated directories have the size
> 0. Doing the same thing by passing map50.cpp works just fine and
> pregenerates new files. Is there smth, that I miss?

Fixing the above should do the trick.

HTH,

-- 
Aleksey Gurtovoy
MetaCommunications Engineering

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