Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.20 KB | None | 0 0
  1. diff --git a/util/qlalr/compress.cpp b/util/qlalr/compress.cpp
  2. index 626ca53..586258f 100644
  3. --- a/util/qlalr/compress.cpp
  4. +++ b/util/qlalr/compress.cpp
  5. @@ -46,11 +46,14 @@
  6.  #include <algorithm>
  7.  #include <iterator>
  8.  #include <iostream>
  9. +#include <functional>
  10.  #include "compress.h"
  11.  
  12.  #define QLALR_NO_CHECK_SORTED_TABLE
  13.  
  14. -struct _Fit: public std::binary_function<int, int, bool>
  15. +using namespace std;
  16. +
  17. +struct _Fit: public binary_function<int, int, bool>
  18.  {
  19.    inline bool operator () (int a, int b) const
  20.    {
  21. @@ -58,7 +61,7 @@ struct _Fit: public std::binary_function<int, int, bool>
  22.    }
  23.  };
  24.  
  25. -struct _PerfectMatch: public std::binary_function<int, int, bool>
  26. +struct _PerfectMatch: public binary_function<int, int, bool>
  27.  {
  28.    inline bool operator () (int a, int b) const
  29.    { return a == b; }
  30. @@ -148,7 +151,7 @@ private:
  31.    const_iterator _M_endNonZeros;
  32.  };
  33.  
  34. -struct _SortUncompressedRow: public std::binary_function<UncompressedRow, UncompressedRow, bool>
  35. +struct _SortUncompressedRow: public binary_function<UncompressedRow, UncompressedRow, bool>
  36.  {
  37.    inline bool operator () (const UncompressedRow &a, const UncompressedRow &b) const
  38.    { return a.count (0) > b.count (0); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement