On Tue, Dec 11, 2007 at 03:26:41AM +0000, Angus Leeming wrote:
> Andre Poenitz <[EMAIL PROTECTED]> writes:
> > So maybe the macro is not the best idea after all.
> 
> Maybe I'll dig into the boost preprocessor library to write something like:
> 
> vector<string> opts = LYX_INITIALIZE_VECTOR("a", "b", "c");

Given that the plain C++ version 

        char const *d[] = { "a", "b", "c" };
        vector<string> v(d, d + sizeof(d) / sizeof(d[0]));

is - taking the extra #include <boost/whatever.hpp> line into
account - not even longer to type than any boost based solution
I doubt the boost stuff would survive for long in tex2lyx...

> Compile times would surely make you smile.

For sure.

Andre'

Reply via email to