Skip to content

Commit

Permalink
yet more updates on the quest for a good windows compile :)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-beard committed May 29, 2016
1 parent abd4c42 commit 7697889
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions examples/general/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
#pi readfile sum

add_subdirectory( pi )
##
# take out if windows since not that many have bzlib installed
##
if( NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows" )
add_subdirectory( rbzip2 )
endif( NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows" )

add_subdirectory( multiply )
add_subdirectory( readfile )
add_subdirectory( singlequeue )
Expand Down
7 changes: 5 additions & 2 deletions raftinc/random.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public:
template <class ... Args >
random_variate( const std::size_t N,
Args&&... params ) : parallel_k(),
gen( std::chrono::system_clock::now().time_since_epoch().count() ),
gen(
static_cast< typename GENERATOR::result_type >(
std::chrono::system_clock::now().time_since_epoch().count() ) ),
dist( std::forward< Args >( params )... ),
N( N )
{
Expand All @@ -51,7 +53,8 @@ public:
}

random_variate( const random_variate &other ) : parallel_k(),
gen( std::chrono::system_clock::now().time_since_epoch().count() ),
gen( static_cast< typename GENERATOR::result_type >(
std::chrono::system_clock::now().time_since_epoch().count() ) ),
dist( other.dist ),
N( other.N )
{
Expand Down

0 comments on commit 7697889

Please sign in to comment.