bricks: add support for gcc prior to 4.9

* bricks/brick-bitlevel, bricks/brick-hashset,
bricks/brick-shmem, bricks/brick-types: here.
This commit is contained in:
Etienne Renault 2016-12-06 15:35:51 +01:00
parent 6c5c308ea8
commit a308d1a60a
4 changed files with 15 additions and 6 deletions

View file

@ -188,7 +188,7 @@ struct AsyncLoop : Thread< LoopWrapper< T > >
};
template< typename L >
auto async_loop( L &&l )
auto async_loop( L &&l ) -> AsyncLoop< LambdaWrapper< L > >&&
{
AsyncLoop< LambdaWrapper< L > > al( std::forward< L >( l ) );
al._start_on_move = true;
@ -196,7 +196,7 @@ auto async_loop( L &&l )
}
template< typename L >
auto thread( L &&l )
auto thread( L &&l ) -> Thread< LambdaWrapper< L > >
{
Thread< LambdaWrapper< L > > thr( std::forward< L >( l ) );
thr._start_on_move = true;