Language
C++
Compiler
clang HEAD 6.0.0 (https://github.com/llvm-mirror/clang.git 9abf20c4164830b4128ff68823990787ea933862) (https://github.com/llvm-mirror/llvm.git ee5e3180393bc0885ef3fd6c0e20c6d34bdabb46)
Options
Warnings
Boost 1.65.1
C++2a(GNU)
Boost 1.65.1
C++2a(GNU)
Boost 1.65.1
C++2a(GNU)
no pedantic
// Example program
#include <iostream>
#include <string>
#include <type_traits>
template<bool B, typename T>
using Enable_if = typename std::enable_if<B,T>::type;
template<int N>
void f(){
std::cout << N;
f<N-1>();
}
int main() {
f<5>();
}
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.1/clang-head/include -std=gnu++2a
Exit Code:
1