mpark / variant

C++17 `std::variant` for C++11/14/17
https://mpark.github.io/variant
Boost Software License 1.0
659 stars 88 forks source link

Intellisense stop working in VS 2017 after including mpark/varaint.hpp #47

Closed yujin-lai closed 5 years ago

yujin-lai commented 6 years ago

We've narrowed the issue to the lib.hpp file in mpark variant

These lines are messing up intellisense(Lines 393-397 in lib.hpp of mpark)

template <std::size_t I, typename... Ts> using type_pack_element = typename type_pack_element_impl<I, Ts...>::type;

template <std::size_t I, typename... Ts> using type_pack_element_t = typename type_pack_element<I, Ts...>::type;

Could you check it and fix it? you know, It's painful to work without intellisense.

mpark commented 5 years ago

@yujin-lai: Is this still an issue?

yujin-lai commented 5 years ago

Sorry, I don't know now. I have switched to another variant because of the issue.

mpark commented 5 years ago

Ah okay. Sorry I couldn't address the issue for you earlier, but I'm glad you found something that works for you.