Are there any working implementations for Visual C++ 6? Specifcally I'm looking for std::enable_if
and std::is_same
and std::remove_cv
.
Asked
Active
Viewed 103 times
0

Zhro
- 2,546
- 2
- 29
- 39
-
You can roll out your own, the mechanisms existed in the standard since c++98 – StoryTeller - Unslander Monica Feb 11 '16 at 10:56
-
2Can you use [`boost::type_traits`](http://www.boost.org/doc/libs/master/libs/type_traits/doc/html/index.html)? – mindriot Feb 11 '16 at 11:00
-
I did a search of that documentation and there are no results for `enable_if`. – Zhro Feb 11 '16 at 11:09
-
@StoryTeller I would like a drop-in solution as I don't know how to implement this library or these functions. – Zhro Feb 11 '16 at 11:10
-
[It's not too difficult](http://en.cppreference.com/w/cpp/types/enable_if). As the possible implementation section demonstrates. – StoryTeller - Unslander Monica Feb 11 '16 at 11:21
-
I tried that too before posting to SO. It doesn't work with VC6: `error C2182: '__formal' : illegal use of type 'void'`. – Zhro Feb 11 '16 at 11:43
-
Did you happen to use it like this `enable_if
::type variable`? – StoryTeller - Unslander Monica Feb 11 '16 at 12:03 -
I'm trying to see if this is possible in VC6: https://ideone.com/tW4GVE – Zhro Feb 11 '16 at 12:28
-
VC6 does not support SFINAE so you might find it difficult. – Pete Feb 11 '16 at 13:08