Skip to content

Instantly share code, notes, and snippets.

@mcg1969
Last active January 2, 2016 16:09
Show Gist options
  • Save mcg1969/8328094 to your computer and use it in GitHub Desktop.
Save mcg1969/8328094 to your computer and use it in GitHub Desktop.
Patch for libinterp/corefcn/jit-typeinfo.{cc,h}, Octave 3.8.0 build.
diff --git a/libinterp/corefcn/jit-typeinfo.cc b/libinterp/corefcn/jit-typeinfo.cc
index 77a3cf4..911f3b2 100644
--- a/libinterp/corefcn/jit-typeinfo.cc
+++ b/libinterp/corefcn/jit-typeinfo.cc
@@ -916,7 +916,7 @@ jit_operation::generate (const signature_vec&) const
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 --git a/libinterp/corefcn/jit-typeinfo.h b/libinterp/corefcn/jit-typeinfo.h
index 2799e68..95e7914 100644
--- a/libinterp/corefcn/jit-typeinfo.h
+++ b/libinterp/corefcn/jit-typeinfo.h
@@ -372,7 +372,7 @@ private:
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<const signature_vec *, jit_function *, signature_cmp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment