Boost logo

Boost :

Subject: Re: [boost] MSVC9 SFINAE quirks?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-08 15:56:12


Simonson, Lucanus J wrote:
>> I can take a look at it if I have a full test case to work with.
>> Where can I get the current version of gtl?
>> is old.
> Try it now. You can just add #include "gtl.hpp" at the top of the code snippet from my previous email and you should be able to reproduce the same compiler errors I'm seeing using what is now in the sandbox.

Okay. So msvc just doesn't like SFINAE except at the top level.
I think you're going to have to make all the tests boolean metafunctions
and add a top level enable_if. For example:

  template <typename geometry_type_1, typename geometry_type_2>
  typename boost::enable_if<
      polygon_set_view<geometry_type_1, geometry_type_2, 3>
  operator-(const geometry_type_1& lvalue, const geometry_type_2& rvalue) {
    return polygon_set_view<geometry_type_1, geometry_type_2, 3>
      (lvalue, rvalue);

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at