Mark operator() as const for VS 2015 compat.
commit708ba318c48d27b840274b004ab4ba532e8b8924
authorbrucedawson <brucedawson@chromium.org>
Tue, 7 Apr 2015 21:52:06 +0000 (7 14:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Apr 2015 21:53:04 +0000 (7 21:53 +0000)
treeb323e68d5331d2a34cf2a7339980329db053b845
parentf072931f978d65c159fa043bf6d2092c25b57724
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}
device/core/device_monitor_win.cc