# HG changeset patch # User Michael C. Grant # Date 1388965398 21600 # Node ID 4d90e104bf357f9e8310cbb0242db8c94dab4a6f # Parent 6ef8b920a7d6a77b590e3b3a8c80b9e138b19dd4 Allow jit-typeinfo.h to compile with clang on OS X (bug #41114) * jit-typeinfo.h, jit-typeinfo.cc (jit_operation::signature_cmp::operator()): Now const. diff -r 6ef8b920a7d6 -r 4d90e104bf35 libinterp/corefcn/jit-typeinfo.cc --- a/libinterp/corefcn/jit-typeinfo.cc Tue Aug 20 18:57:48 2013 +0200 +++ b/libinterp/corefcn/jit-typeinfo.cc Sun Jan 05 17:43:18 2014 -0600 @@ -916,7 +916,7 @@ bool jit_operation::signature_cmp -::operator() (const signature_vec *lhs, const signature_vec *rhs) +::operator() (const signature_vec *lhs, const signature_vec *rhs) const { const signature_vec& l = *lhs; const signature_vec& r = *rhs; diff -r 6ef8b920a7d6 -r 4d90e104bf35 libinterp/corefcn/jit-typeinfo.h --- a/libinterp/corefcn/jit-typeinfo.h Tue Aug 20 18:57:48 2013 +0200 +++ b/libinterp/corefcn/jit-typeinfo.h Sun Jan 05 17:43:18 2014 -0600 @@ -372,7 +372,7 @@ struct signature_cmp { - bool operator() (const signature_vec *lhs, const signature_vec *rhs); + bool operator() (const signature_vec *lhs, const signature_vec *rhs) const; }; typedef std::map