You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to test out SBE so I tried the cppbuild on Windows with Visual Studio 2015. The benchlet-sbe-*-runner failed to compile due to issues like the one below.
Error C2589 '(': illegal token on right side of '::' benchlet-sbe-car-runner
D:\sbe\cppbuild\Release\generated\uk_co_real_logic_sbe_benchmarks\Car.h 870
It turned out that the SBE_NULLVALUE_* macros were using std::numeric_limits<T>::min() and std::numeric_limits<T>::max, which conflicted with the min and max macros in Windows header winnt.h. The following change to suppress the macro expansions made the problem go away.
I wanted to test out SBE so I tried the
cppbuild
on Windows with Visual Studio 2015. Thebenchlet-sbe-*-runner
failed to compile due to issues like the one below.It turned out that the SBE_NULLVALUE_* macros were using
std::numeric_limits<T>::min()
andstd::numeric_limits<T>::max
, which conflicted with themin
andmax
macros in Windows headerwinnt.h
. The following change to suppress the macro expansions made the problem go away.Old:
New:
BTW, awesome work on SBE and Aeron. Many thanks!
The text was updated successfully, but these errors were encountered: