Sign in
fuchsia
/
third_party
/
github.com
/
Kitware
/
CMake
/
533a6256a3fa9d362666519ecae90f7299911497
/
.
/
Tests
/
Cuda
/
MixedStandardLevels4
/
lib.cpp
blob: ef6fc20056fc0697f9cbd61a7e11d48ad6b952cc [
file
] [
log
] [
blame
]
constexpr
int
func
(
int
A
,
int
B
)
{
#if defined(_MSC_VER) && _MSC_VER < 1913
// no suppport 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
}