Sign in
fuchsia
/
third_party
/
github.com
/
Kitware
/
CMake
/
292a86bb8e0a60a484c0371d691125b84dabdf39
/
.
/
Tests
/
Cuda
/
MixedStandardLevels4
/
lib.cpp
blob: 2a65c77c96a16380a511a28e4321eef941063296 [
file
] [
log
] [
blame
]
constexpr
int
func
(
int
A
,
int
B
)
{
#if defined(_MSC_VER) && _MSC_VER < 1913
// no support for extended constexpr
return
B
*
A
;
#else
// Verify that we have at least c++14
if
(
A
<
B
)
{
return
A
+
B
;
}
else
{
return
B
*
A
;
}
#endif
}