Language
C++
Compiler
gcc HEAD 8.0.0 20170911 (experimental)
Options
Warnings
Boost 1.65.1
C++1z(GNU)
Boost 1.65.1
C++1z(GNU)
Boost 1.65.1
C++1z(GNU)
Boost 1.65.1
C++1z(GNU)
Boost 1.65.1
C++1z(GNU)
no pedantic
Raw compiler options
-fconcepts
#include <stdio.h>
namespace B {
template<class T>
int foobar() { return 2; }
struct foo {};
}
namespace A {
template<class T>
int foobar() { return 1; }
template<class T>
void test(T) {
printf("%d\n", foobar<T>());
}
}
int main()
{
A::test(B::foo{});
}
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.1/gcc-head/include -std=gnu++1z -fconcepts
1
Exit Code:
0