diff --git a/include/fc/thread.hpp b/include/fc/thread.hpp index 4272b53..3d23585 100644 --- a/include/fc/thread.hpp +++ b/include/fc/thread.hpp @@ -1,13 +1,12 @@ #ifndef _FC_THREAD_HPP_ #define _FC_THREAD_HPP_ #include +#include namespace fc { class string; class time_point; class microseconds; - - template class vector; // forward declare class thread { public: diff --git a/include/fc/value.hpp b/include/fc/value.hpp index ca777a6..7d4d17f 100644 --- a/include/fc/value.hpp +++ b/include/fc/value.hpp @@ -113,7 +113,7 @@ namespace fc { return _obj_type == reflector::instance(); } - fwd,8> get_keys()const; + fwd,24> get_keys()const; iterator find( const char* key ); const_iterator find( const char* key )const; diff --git a/include/fc/vector.hpp b/include/fc/vector.hpp index ef78edd..89cadaf 100644 --- a/include/fc/vector.hpp +++ b/include/fc/vector.hpp @@ -6,6 +6,16 @@ #include #include + +#if 0 +#include +namespace fc { + template + using vector = std::vector; +} + +#else + namespace fc { namespace detail { template @@ -348,5 +358,6 @@ namespace fc { }; }; +#endif #endif // _FC_VECTOR_HPP_ diff --git a/include/fc/vector_fwd.hpp b/include/fc/vector_fwd.hpp index 361d3c9..92760b4 100644 --- a/include/fc/vector_fwd.hpp +++ b/include/fc/vector_fwd.hpp @@ -1,8 +1,13 @@ #ifndef _FC_VECTOR_FWD_HPP_ #define _FC_VECTOR_FWD_HPP_ +#if 0 +#include +#else namespace fc { template class vector; template class reflector; template class reflector< fc::vector >; }; +#endif + #endif // _FC_VECTOR_FWD_HPP_ diff --git a/src/ip.cpp b/src/ip.cpp index 6e7c24a..6e45c42 100644 --- a/src/ip.cpp +++ b/src/ip.cpp @@ -50,7 +50,7 @@ namespace fc { namespace ip { } endpoint::operator string()const { - return string(_ip) + ':' + boost::lexical_cast(_port); + return string(_ip) + ':' + fc::string(boost::lexical_cast(_port).c_str()); } } } diff --git a/src/value.cpp b/src/value.cpp index 98e991b..d9eba3b 100644 --- a/src/value.cpp +++ b/src/value.cpp @@ -285,8 +285,8 @@ namespace fc { bool value::is_boolean()const { return _obj_type == &reflector::instance(); } - fwd,8> value::get_keys()const { - fwd,8> s; + fwd,24> value::get_keys()const { + fwd,24> s; return s; }