|
Boost : |
From: rogeeff (rogeeff_at_[hidden])
Date: 2002-02-23 10:00:54
--- In boost_at_y..., Samuel Krempp <krempp_at_c...> wrote:
> On Sat, 2002-02-23 at 04:25, Samuel Krempp wrote:
> > Okay, I've finally accessed a MSVC6 compiler, and fixed all
problems
> > format2 had with this compiler.
>
> argh, no, false alarm, there's still an overload MSVC can't
resolve..
>
> I'm still looking for a workaround..
>
> --
> Samuel
First of all add boost/config.hpp into format.hpp
and make group1 constructor explicit. But you still end up with the
following ambiguity on MSVC:
template<typename T>
struct A {
};
template<typename T>
void foo( T const& ) {}
template<typename T>
void foo( A<T> const& ) {}
int main(int, char*[])
{
A<int> a_int;
foo( a_int );
return 0;
}
error C2667: 'foo' : none of 2 overload have a best conversion
Anyone knows a fix?
Gennadiy.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk