This commit is contained in:
Daniel Larimer 2012-09-09 21:44:57 -04:00
parent c5b4069abd
commit e7a6256c8b
6 changed files with 21 additions and 6 deletions

View file

@ -1,13 +1,12 @@
#ifndef _FC_THREAD_HPP_
#define _FC_THREAD_HPP_
#include <fc/task.hpp>
#include <fc/vector_fwd.hpp>
namespace fc {
class string;
class time_point;
class microseconds;
template<typename T> class vector; // forward declare
class thread {
public:

View file

@ -113,7 +113,7 @@ namespace fc {
return _obj_type == reflector<T>::instance();
}
fwd<vector<string>,8> get_keys()const;
fwd<vector<string>,24> get_keys()const;
iterator find( const char* key );
const_iterator find( const char* key )const;

View file

@ -6,6 +6,16 @@
#include <fc/utility.hpp>
#include <fc/log.hpp>
#if 0
#include <vector>
namespace fc {
template<typename T>
using vector = std::vector<T>;
}
#else
namespace fc {
namespace detail {
template<typename T>
@ -348,5 +358,6 @@ namespace fc {
};
};
#endif
#endif // _FC_VECTOR_HPP_

View file

@ -1,8 +1,13 @@
#ifndef _FC_VECTOR_FWD_HPP_
#define _FC_VECTOR_FWD_HPP_
#if 0
#include <fc/vector.hpp>
#else
namespace fc {
template<typename T> class vector;
template<typename T> class reflector;
template<typename T> class reflector< fc::vector<T> >;
};
#endif
#endif // _FC_VECTOR_FWD_HPP_

View file

@ -50,7 +50,7 @@ namespace fc { namespace ip {
}
endpoint::operator string()const {
return string(_ip) + ':' + boost::lexical_cast<uint16_t>(_port);
return string(_ip) + ':' + fc::string(boost::lexical_cast<std::string>(_port).c_str());
}
} }

View file

@ -285,8 +285,8 @@ namespace fc {
bool value::is_boolean()const {
return _obj_type == &reflector<bool>::instance();
}
fwd<vector<string>,8> value::get_keys()const {
fwd<vector<string>,8> s;
fwd<vector<string>,24> value::get_keys()const {
fwd<vector<string>,24> s;
return s;
}