Current develop branch failed to build for Android
Created by: Xreki
Error information:
/paddle/paddle/gserver/layers/ROIPoolLayer.cpp:103:24: error: no matching function for call to 'max'
size_t roiHeight = std::max(roiEndH - roiStartH + 1, 1UL);
^~~~~~~~
/opt/toolchains/arm-android-21/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../include/c++/4.9.x/bits/algorithmfwd.h:356:5: note: candidate template
ignored: deduced conflicting types for parameter '_Tp' ('unsigned int' vs. 'unsigned long')
max(const _Tp&, const _Tp&);
^
/opt/toolchains/arm-android-21/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../include/c++/4.9.x/bits/stl_algo.h:3488:5: note: candidate template
ignored: could not match 'initializer_list<type-parameter-0-0>' against 'unsigned int'
max(initializer_list<_Tp> __l, _Compare __comp)
^
/opt/toolchains/arm-android-21/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../include/c++/4.9.x/bits/algorithmfwd.h:360:5: note: candidate function
template not viable: requires 3 arguments, but 2 were provided
max(const _Tp&, const _Tp&, _Compare);
^
/opt/toolchains/arm-android-21/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../include/c++/4.9.x/bits/stl_algo.h:3483:5: note: candidate function
template not viable: requires single argument '__l', but 2 arguments were provided
max(initializer_list<_Tp> __l)
^