Boost logo

Boost Testing :

Subject: Re: [Boost-testing] [VC++10] Could someone please see if this compiles?
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-05-28 17:33:42

On Fri, 28 May 2010, Steven Watanabe wrote:

> Jeremiah Willcock wrote:
>> What about this one:
>> <snip>
> It compiles.

Sorry I keep asking for these, but I don't have VC++ 10 and would like a
small example to report as a bug. I guess I trimmed too far in the last
one -- what about this?

-- Jeremiah Willcock

template <typename Graph, typename Property>
struct property_map {};

template <typename Graph, typename T, typename Bundle>
struct property_map<Graph, T Bundle::*> {
   typedef int type;

struct directedS {};
struct distributedS {};

template <typename D,
           typename VertexProperty, typename EdgeProperty,
           typename GraphProperty, typename Vertex,
           typename EdgeIndex>
struct compressed_sparse_row_graph {};

template <typename VertexProperty, typename EdgeProperty,
           typename GraphProperty,
           typename InEdgeIndex, typename T, typename Bundle>
struct property_map<
            directedS, VertexProperty, EdgeProperty, GraphProperty,
>, T Bundle::*>
   typedef double type;

struct vertex_prop {
   float member;

int main(int, char**) {
       directedS, vertex_prop, int, int,
       distributedS, int>,
     float vertex_prop::*>::type** x = (double**)0;
   return 0;

Boost-testing list run by mbergal at