Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/util/qlalr/compress.cpp b/util/qlalr/compress.cpp
- index 626ca53..586258f 100644
- --- a/util/qlalr/compress.cpp
- +++ b/util/qlalr/compress.cpp
- @@ -46,11 +46,14 @@
- #include <algorithm>
- #include <iterator>
- #include <iostream>
- +#include <functional>
- #include "compress.h"
- #define QLALR_NO_CHECK_SORTED_TABLE
- -struct _Fit: public std::binary_function<int, int, bool>
- +using namespace std;
- +
- +struct _Fit: public binary_function<int, int, bool>
- {
- inline bool operator () (int a, int b) const
- {
- @@ -58,7 +61,7 @@ struct _Fit: public std::binary_function<int, int, bool>
- }
- };
- -struct _PerfectMatch: public std::binary_function<int, int, bool>
- +struct _PerfectMatch: public binary_function<int, int, bool>
- {
- inline bool operator () (int a, int b) const
- { return a == b; }
- @@ -148,7 +151,7 @@ private:
- const_iterator _M_endNonZeros;
- };
- -struct _SortUncompressedRow: public std::binary_function<UncompressedRow, UncompressedRow, bool>
- +struct _SortUncompressedRow: public binary_function<UncompressedRow, UncompressedRow, bool>
- {
- inline bool operator () (const UncompressedRow &a, const UncompressedRow &b) const
- { return a.count (0) > b.count (0); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement