Build optimization fc changes: GRPH-92 #13

Merged
pbsa-gitlab merged 5 commits from github/fork/gladcow/feature/GRPH-92 into latest-fc 2020-01-06 16:35:32 +00:00
Showing only changes of commit 23761bade5 - Show all commits

View file

@ -524,11 +524,11 @@ namespace fc {
template<typename Stream, typename T> template<typename Stream, typename T>
inline void pack( Stream& s, const T& v ) { void pack( Stream& s, const T& v ) {
fc::raw::detail::if_reflected< typename fc::reflector<T>::is_defined >::pack(s,v); fc::raw::detail::if_reflected< typename fc::reflector<T>::is_defined >::pack(s,v);
} }
template<typename Stream, typename T> template<typename Stream, typename T>
inline void unpack( Stream& s, T& v ) void unpack( Stream& s, T& v )
{ try { { try {
fc::raw::detail::if_reflected< typename fc::reflector<T>::is_defined >::unpack(s,v); fc::raw::detail::if_reflected< typename fc::reflector<T>::is_defined >::unpack(s,v);
} FC_RETHROW_EXCEPTIONS( warn, "error unpacking ${type}", ("type",fc::get_typename<T>::name() ) ) } } FC_RETHROW_EXCEPTIONS( warn, "error unpacking ${type}", ("type",fc::get_typename<T>::name() ) ) }