On Sun, 2008-02-03 at 13:09 +1300, Amos Jeffries wrote:
> The exact errors is when compiling testHeaders_HttpRequestMethod.cc.
> The test where there is no code run, just the dependency and inline build.
>
> ./HttpRequestMethod.h: In function ‘std::ostream&
> operator<<(std::ostream&, const HttpRequestMethod&)’:
> ./HttpRequestMethod.h:181: error: ambiguous overload for ‘operator<<’ in
> ‘os << ((const HttpRequestMethod*)method)->HttpRequestMethod::image()’
> ./String.cci:186: note: candidates are: std::ostream&
> operator<<(std::ostream&, const String&)
> ./HttpRequestMethod.h:179: note: std::ostream&
> operator<<(std::ostream&, const HttpRequestMethod&)
>
>
> And its back, removing the silent _method_t() conversion has no effect.
> I'll keep experimenting, but if you have any ideas please let me know.
Make the end parameter explicit in
HttpRequestMethod(char const * begin, char const * end=0);
HTH,
Alex.