[multi_index] Missing include in ordered_index.hpp

Hello, this file uses the function node_from_value() but does not include detail/index_node_base.hpp where the function is declared. Attached patch fixes this, OK to commit? Regards, Markus Index: ordered_index.hpp =================================================================== --- ordered_index.hpp (revision 40040) +++ ordered_index.hpp (working copy) @@ -58,6 +58,7 @@ #include <boost/multi_index/detail/scope_guard.hpp> #include <boost/multi_index/detail/unbounded.hpp> #include <boost/multi_index/detail/value_compare.hpp> +#include <boost/multi_index/detail/index_node_base.hpp> #include <boost/multi_index/ordered_index_fwd.hpp> #include <boost/ref.hpp> #include <boost/tuple/tuple.hpp>

Markus Schöpflin ha escrito:
Hello,
this file uses the function node_from_value() but does not include detail/index_node_base.hpp where the function is declared.
Oh, nice catch! hashed_index.hpp is also lacking the same include, BTW.
Attached patch fixes this, OK to commit?
I've just commited the changes myself.
Regards, Markus
Thanks for the report, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
participants (2)
-
Joaquín Mª López Muñoz
-
Markus Schöpflin