forked from Blurt-Blockchain/blurt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create steem_fwd.hpp to forward-declare all custom serializers steemi…
- Loading branch information
1 parent
22ce0fa
commit 8bc628b
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#pragma once | ||
|
||
// This header forward-declare spack/unpack and to/from variant functions for Steem types. | ||
// These declarations need to be as early as possible to prevent compiler errors. | ||
|
||
#include <chainbase/allocators.hpp> | ||
|
||
namespace chainbase { | ||
template< typename T > | ||
class oid; | ||
} | ||
|
||
namespace fc { namespace raw { | ||
|
||
template<typename Stream, typename T> | ||
inline void pack( Stream& s, const chainbase::oid<T>& id ); | ||
template<typename Stream, typename T> | ||
inline void unpack( Stream& s, chainbase::oid<T>& id ); | ||
|
||
template<typename Stream> | ||
inline void pack( Stream& s, const chainbase::shared_string& ss ); | ||
template<typename Stream> | ||
inline void unpack( Stream& s, chainbase::shared_string& ss ); | ||
|
||
template<typename Stream, typename E, typename A> | ||
void pack( Stream& s, const boost::interprocess::deque< E, A >& value ); | ||
template<typename Stream, typename E, typename A> | ||
void unpack( Stream& s, boost::interprocess::deque< E, A >& value ); | ||
|
||
template<typename Stream, typename K, typename V, typename C, typename A> | ||
void pack( Stream& s, const boost::interprocess::flat_map< K, V, C, A >& value ); | ||
template<typename Stream, typename K, typename V, typename C, typename A> | ||
void unpack( Stream& s, boost::interprocess::flat_map< K, V, C, A >& value ); | ||
|
||
/* | ||
template<typename Stream, typename K, typename V, typename C, typename A> | ||
void pack( Stream& s, const boost::interprocess::map< K, V, C, A >& value ); | ||
template<typename Stream, typename K, typename V, typename C, typename A> | ||
void unpack( Stream& s, boost::interprocess::map< K, V, C, A >& value ); | ||
template<typename Stream, typename E, typename C, typename A> | ||
void pack( Stream& s, const boost::interprocess::set< E, C, A >& value ); | ||
template<typename Stream, typename E, typename C, typename A> | ||
void unpack( Stream& s, boost::interprocess::set< E, C, A >& value ); | ||
*/ | ||
|
||
} } |