Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
support for fc::fwd with 5 ctor args
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Jul 16, 2020
1 parent 50ab2c9 commit 1c401e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions libraries/fc/include/fc/fwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class fwd {
template<typename U> fwd( U&& u );
template<typename U, typename V> fwd( U&& u, V&& v );
template<typename U, typename V, typename X, typename Y> fwd( U&& u, V&& v, X&&, Y&& );
template<typename U, typename V, typename X, typename Y, typename Z> fwd( U&& u, V&& v, X&&, Y&&, Z&& );
fwd();

fwd( const fwd& f );
Expand Down
7 changes: 6 additions & 1 deletion libraries/fc/include/fc/fwd_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ namespace fc {
check_size<sizeof(T),sizeof(_store)>();
new (this) T( fc::forward<U>(u), fc::forward<V>(v), fc::forward<X>(x), fc::forward<Y>(y) );
}

template<typename T,unsigned int S,typename A>
template<typename U,typename V,typename X,typename Y,typename Z>
fwd<T,S,A>::fwd( U&& u, V&& v, X&& x, Y&& y, Z&& z ) {
check_size<sizeof(T),sizeof(_store)>();
new (this) T( fc::forward<U>(u), fc::forward<V>(v), fc::forward<X>(x), fc::forward<Y>(y), fc::forward<Z>(z) );
}

template<typename T,unsigned int S,typename A>
fwd<T,S,A>::fwd() {
Expand Down

0 comments on commit 1c401e1

Please sign in to comment.