ext/template/google_hash.cpp.erb in google_hash-0.6.2 vs ext/template/google_hash.cpp.erb in google_hash-0.7.0
- old
+ new
@@ -1,17 +1,18 @@
#include <iostream>
#include <google/<%= type %>_hash_map>
#include <ruby.h>
+#include <tr1/functional>
// much code stolen shamelessly from lourens' cb gem
using google::<%= type %>_hash_map; // namespace where class lives by default
using std::cout;
using std::endl;
<% if OS.posix? %>
#include <ext/hash_set>
<% end %>
-using __gnu_cxx::hash; // or __gnu_cxx::hash, or maybe tr1::hash, depending on your OS
+using std::tr1::hash; // or __gnu_cxx::hash, or maybe tr1::hash, depending on your OS
extern "C" {
// some helpers