
On Thu, 4 Mar 2010, Steven Watanabe wrote:
AMDG
Jeremiah Willcock wrote:
I looked at changing the key_type in get to something that would SFINAE out and there isn't one: the farthest I could go is property_traits<IndexMap>::value_type (key_type in the code is a bug), and that class will fail to instantiate (non-SFINAE) on bad index map types. That can be specialized, so I can't fall back to the default definition of value_type inside it. I don't see a general-purpose solution to problem right now.
Would this break anything?
template<typename PA> struct property_traits : PA {};
That plus changing two_bit_property_map to use it passes the BGL, PBGL, and property_map test cases. Does it work to fix all of the known variant problems? -- Jeremiah Willcock