diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-08-27 22:42:26 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-08-28 00:24:15 +0200 |
commit | 2026c22a35a737cc6bfecafe3da595e979a83de1 (patch) | |
tree | 53d5e5cfb5bc68770ac42ce489125f4c5f4dcb3b /crawl-ref/source/rltiles/tiledef_defines.h | |
parent | 71d1c1b1d5f994214d18dfffa1ea53db5067bcc3 (diff) | |
download | crawl-ref-2026c22a35a737cc6bfecafe3da595e979a83de1.tar.gz crawl-ref-2026c22a35a737cc6bfecafe3da595e979a83de1.zip |
Get rid of std:: in the rltile tool.
This is somewhat less nice than Crawl proper, as there's no common header
that's included by everything.
Diffstat (limited to 'crawl-ref/source/rltiles/tiledef_defines.h')
-rw-r--r-- | crawl-ref/source/rltiles/tiledef_defines.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/rltiles/tiledef_defines.h b/crawl-ref/source/rltiles/tiledef_defines.h index a3e4051bb8..6030e3ae26 100644 --- a/crawl-ref/source/rltiles/tiledef_defines.h +++ b/crawl-ref/source/rltiles/tiledef_defines.h @@ -4,6 +4,7 @@ #include <cassert> #include <vector> #include <stdint.h> +using namespace std; typedef uint64_t tileidx_t; @@ -72,7 +73,7 @@ struct tile_variation }; template<class F, class R> -bool binary_search(F find, std::pair<F, R> *arr, int num_pairs, +bool binary_search(F find, pair<F, R> *arr, int num_pairs, int (*cmpfnc)(F, F), R *result) { int first = 0; |