diff --git a/CMakeLists.txt b/CMakeLists.txt index 508a437..fb2c307 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,16 +1,16 @@ cmake_minimum_required(VERSION 3.0) project(mylib VERSION 1.0) add_executable(mylib_bench main_benchmark.cpp) set(BENCHMARK_USE_BUNDLED_GTEST OFF) set(BENCHMARK_ENABLE_GTEST_TESTS OFF) set(BENCHMARK_ENABLE_TESTING OFF) add_subdirectory(benchmark) add_subdirectory(akantu_iterators) find_package(TBB) -target_link_libraries(mylib_bench benchmark::benchmark akantu_iterators) +target_link_libraries(mylib_bench benchmark::benchmark akantu_iterators tbb) set_target_properties(mylib_bench PROPERTIES CXX_STANDARD 17) diff --git a/akantu_iterators/include/iterators/aka_zip_iterator.hh b/akantu_iterators/include/iterators/aka_zip_iterator.hh index 30c3389..c8c268d 100644 --- a/akantu_iterators/include/iterators/aka_zip_iterator.hh +++ b/akantu_iterators/include/iterators/aka_zip_iterator.hh @@ -1,282 +1,290 @@ /** * @file aka_zip_iterator.hh * * @author Nicolas Richart * * @date creation jeu déc 12 2019 * * @brief A Documented file. * * * Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne) * Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides) * * akantu-iterators is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * akantu-iterators is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with akantu-iterators. If not, see . * */ /* -------------------------------------------------------------------------- */ #include "aka_compatibilty_with_cpp_standard.hh" #include "aka_iterator_tools.hh" #include "aka_tuple_tools.hh" /* -------------------------------------------------------------------------- */ #include #include /* -------------------------------------------------------------------------- */ #ifndef AKA_ZIP_ITERATOR_HH #define AKA_ZIP_ITERATOR_HH #ifndef AKANTU_ITERATORS_NAMESPACE #define AKANTU_ITERATORS_NAMESPACE akantu #endif namespace AKANTU_ITERATORS_NAMESPACE { /* -------------------------------------------------------------------------- */ namespace iterators { /* ------------------------------------------------------------------------ */ template