Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
otcathatsya committed Feb 24, 2024
1 parent d55d1aa commit 720e9d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion nestkernel/connection_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ nest::ConnectionManager::initialize( const bool reset_kernel )
std::vector< DelayChecker > tmp( kernel().vp_manager.get_num_threads() );
delay_checkers_.swap( tmp );

std::vector<aligned_vector<size_t>> tmp2( kernel().vp_manager.get_num_threads(), aligned_vector<size_t>() );
std::vector< aligned_vector< size_t > > tmp2( kernel().vp_manager.get_num_threads(), aligned_vector< size_t >() );
num_connections_.swap( tmp2 );
}

Expand Down
13 changes: 7 additions & 6 deletions nestkernel/connection_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#include "stopwatch.h"

#ifdef HAVE_BOOST
#include <new>
#include <boost/align/aligned_allocator.hpp>
#include <new>
#endif

// Includes from nestkernel:
Expand All @@ -59,11 +59,12 @@ namespace nest
{

#ifdef HAVE_BOOST
template <typename T>
using aligned_vector = std::vector< T, boost::alignment::aligned_allocator<T, std::hardware_destructive_interference_size> >;
template < typename T >
using aligned_vector =
std::vector< T, boost::alignment::aligned_allocator< T, std::hardware_destructive_interference_size > >;
#else
template <typename T>
using aligned_vector = std::vector<T>;
template < typename T >
using aligned_vector = std::vector< T >;
#endif

class GenericConnBuilderFactory;
Expand Down Expand Up @@ -648,7 +649,7 @@ class ConnectionManager : public ManagerInterface
* type. Arranged in a 2d structure: threads|synapsetypes.
*/

std::vector<aligned_vector<size_t>> num_connections_;
std::vector< aligned_vector< size_t > > num_connections_;

DictionaryDatum connruledict_; //!< Dictionary for connection rules.

Expand Down

0 comments on commit 720e9d9

Please sign in to comment.