Skip to content

Commit

Permalink
remove expected error string - current implementation emits compiler …
Browse files Browse the repository at this point in the history
…specific error message e.g

```test/compilation_failure/is_type.cpp:8:7: error: no matching member function for call to 'is'
    x.is<std::string>();
    ~~^~~~~~~~~~~~~~~
./include/mapbox/variant.hpp:657:27: note: candidate template ignored: disabled by 'enable_if' [with T = std::basic_string<char>]
                          (detail::direct_type<T, Types...>::index != detail::invalid_value)>::type* = nullptr>
                          ^
./include/mapbox/variant.hpp:664:26: note: candidate template ignored: disabled by 'enable_if' [with T = std::basic_string<char>]
                         (detail::direct_type<recursive_wrapper<T>, Types...>::index != detail::invalid_value)>::type* = nullptr>
                         ^
1 error generated.
```
(ref #102)
  • Loading branch information
artemp committed May 11, 2016
1 parent c6ae1ea commit 4368d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/compilation_failure/is_type.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @EXPECTED: invalid type in T in `is<T>()` for this variant
// @EXPECTED:

#include <mapbox/variant.hpp>

Expand Down

0 comments on commit 4368d75

Please sign in to comment.