Boost logo

Boost :

From: Paul A. Bristow (boost_at_[hidden])
Date: 2003-02-05 02:21:23


This looks really neat - and potentially very useful.

Sadly, array is one of the most interesting cases - so I'm sure I won't be the
only one 'watching this space'.

Thanks

Paul

PS composite_format is a bit long, but I can't suggest better.

Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK
+44 1539 561830 Mobile +44 7714 33 02 04
Mobile mailto:pabristow_at_[hidden]
mailto:pbristow_at_[hidden]

<snip>

> Looking at the error messages, and from what I've heard, it may be that it
> has problems with template friends (which is what the operator<< is). If
> that's the case, the workaround should be very easy - making it a
> free-function template.
>
> I did that, now, and it works. :)
>
> At least the vector_pair_test(). The array2D_test() uses a little fancy
> code, such as passing the type reference to array as a template parameter,
> and it seems MSVC 7.0 has some problems with this. Anyway, that was just to
> demonstrate usage with built-in types, as well, such as arrays. I'll look
> into it.
>
> There wasn't really any need for it to be a friend function, as it didn't
> access any private parts. It was just defined inside the class for
> convenience.
>
> I've also tested it on Intel C++ 7.0 in strict mode and g++ 3.2, so the code
> should be conformant, at least.
>
> Thanks for the report. I hadn't yet got around to do more portability
> testing, but intend to do that, including writing more tests for it. I've
> updated the version at Yahoo Groups with the above changes.
>
>
> Regards,
>
> Terje
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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