On Tuesday, 12 July 2016 at 14:48:17 UTC, Ola Fosheim Grøstad
wrote:
On Tuesday, 12 July 2016 at 12:57:15 UTC, Ethan Watson wrote:
On Tuesday, 12 July 2016 at 12:51:42 UTC, Ola Fosheim Grøstad
wrote:
C++14/17 stuff
Which would be relevant if the target audience didn't need to
support Visual Studio, which still doesn't fully support C++11
in the latest revision let alone C++14 features.
https://msdn.microsoft.com/en-us/library/hh567368.aspx
cppreference.com provides this implementation for void_t for
pre C++14 compilers, are you sure it doesn't work?
«
template<typename... Ts> struct make_void { typedef void type;};
template<typename... Ts> using void_t = typename
make_void<Ts...>::type;
»
It does work in Visual Studio Update 2 according to this
discussion:
http://stackoverflow.com/questions/31907885/void-t-fails-on-visual-studio-2015
Anyway, if you are going to compare languages, use the latest
edition of both languages.
Doesn't seem fair to compare D to VS, if it is just as much work
to use D as it is to use GCC or Clang? AFAIK MS is aiming to
close the gap, but they have an old backend to work with that
they claim is holding them back.