Commit eb2f7638 authored by Buggynours's avatar Buggynours

Add #include <ostream> in dict0mem.h and change iterator to const_iterator in dic0mem.cc

This fix compiling error when compiled with Visual Studio 9 2008
parent e33b48ae
...@@ -772,7 +772,7 @@ dict_foreign_set_validate( ...@@ -772,7 +772,7 @@ dict_foreign_set_validate(
{ {
dict_foreign_not_exists not_exists(fk_set); dict_foreign_not_exists not_exists(fk_set);
dict_foreign_set::iterator it = std::find_if( dict_foreign_set::const_iterator it = std::find_if(
fk_set.begin(), fk_set.end(), not_exists); fk_set.begin(), fk_set.end(), not_exists);
if (it == fk_set.end()) { if (it == fk_set.end()) {
......
...@@ -50,6 +50,7 @@ Created 1/8/1996 Heikki Tuuri ...@@ -50,6 +50,7 @@ Created 1/8/1996 Heikki Tuuri
#include <set> #include <set>
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>
#include <ostream>
/* Forward declaration. */ /* Forward declaration. */
struct ib_rbt_t; struct ib_rbt_t;
......
...@@ -744,7 +744,7 @@ dict_foreign_set_validate( ...@@ -744,7 +744,7 @@ dict_foreign_set_validate(
{ {
dict_foreign_not_exists not_exists(fk_set); dict_foreign_not_exists not_exists(fk_set);
dict_foreign_set::iterator it = std::find_if( dict_foreign_set::const_iterator it = std::find_if(
fk_set.begin(), fk_set.end(), not_exists); fk_set.begin(), fk_set.end(), not_exists);
if (it == fk_set.end()) { if (it == fk_set.end()) {
......
...@@ -53,6 +53,7 @@ Created 1/8/1996 Heikki Tuuri ...@@ -53,6 +53,7 @@ Created 1/8/1996 Heikki Tuuri
#include <set> #include <set>
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>
#include <ostream>
/* Forward declaration. */ /* Forward declaration. */
struct ib_rbt_t; struct ib_rbt_t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment