Skip to content
Snippets Groups Projects
Commit c0873a23 authored by Michael Vandeberg's avatar Michael Vandeberg Committed by GitHub
Browse files

Merge pull request #6 from steemit/1-deprecate-operator

Remove support for id(db) syntax
parents a1ca9309 3f86a4c6
No related branches found
No related tags found
No related merge requests found
...@@ -68,8 +68,6 @@ namespace chainbase { ...@@ -68,8 +68,6 @@ namespace chainbase {
typedef boost::interprocess::sharable_lock< read_write_mutex > read_lock; typedef boost::interprocess::sharable_lock< read_write_mutex > read_lock;
typedef boost::unique_lock< read_write_mutex > write_lock; typedef boost::unique_lock< read_write_mutex > write_lock;
class database;
/** /**
* Object ID type that includes the type of the object it references * Object ID type that includes the type of the object it references
*/ */
...@@ -77,7 +75,6 @@ namespace chainbase { ...@@ -77,7 +75,6 @@ namespace chainbase {
class oid { class oid {
public: public:
oid( int64_t i = 0 ):_id(i){} oid( int64_t i = 0 ):_id(i){}
const T& operator()( const database& db )const;
oid& operator++() { ++_id; return *this; } oid& operator++() { ++_id; return *this; }
...@@ -861,10 +858,6 @@ namespace chainbase { ...@@ -861,10 +858,6 @@ namespace chainbase {
bfs::path _data_dir; bfs::path _data_dir;
}; };
template<typename T>
const T& oid<T>::operator()( const database& db )const { return db.get<T>( _id ); }
template<typename Object, typename... Args> template<typename Object, typename... Args>
using shared_multi_index_container = boost::multi_index_container<Object,Args..., chainbase::allocator<Object> >; using shared_multi_index_container = boost::multi_index_container<Object,Args..., chainbase::allocator<Object> >;
} // namepsace chainbase } // namepsace chainbase
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment