Mark operator() as const for VS 2015 compat.
VS 2015 RC says, when compiling device_monitor_win.cpp: error C3848: expression having type 'const device::`anonymous-namespace' ::CompareGUID' would lose some const-volatile qualifiers in order to call 'bool device::`anonymous-namespace'::CompareGUID::operator ()(const GUID &,const GUID &)' For details see the STL Breaking Changes (VS14 CTP1) section of: http://blogs.msdn.com/b/vcblog/archive/2014/06/06/ c-14-stl-features-fixes-and-breaking-changes-in- visual-studio-14-ctp1.aspx The complaint, apparently, is that operator() is non-const. Whether this is actually invalid is for the language lawyers to decide. Marking it const is more accurate anyway. R=reillyg@chromium.org BUG=440500 Review URL: https://codereview.chromium.org/1064153002 Cr-Commit-Position: refs/heads/master@{#324129}
Showing
Please register or sign in to comment