Commit 8b11e689 authored by gbalduzz's avatar gbalduzz
Browse files

fixed clang compilation.

parent 9bcfc479
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -187,6 +187,14 @@ struct Convert<std::vector<T>> {
  }
};

// Clang requires this forward declaration.
template <class T1, class T2>
std::ostream& operator<<(std::ostream& stream, const std::pair<T1, T2>& p);
template <class T>
std::ostream& operator<<(std::ostream& stream, const std::vector<T>& vec);
template <class T, std::size_t n>
std::ostream& operator<<(std::ostream& stream, const std::array<T, n>& arr);

template <class T1, class T2>
std::ostream& operator<<(std::ostream& stream, const std::pair<T1, T2>& p) {
  return stream << '(' << p.first << ", " << p.second << ')';
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ add_library(ctint
    ${CTINT_CUDA_CPP_FILES}
    )

target_link_libraries(ctint PUBLIC time_and_frequency_domains)
target_link_libraries(ctint PUBLIC time_and_frequency_domains dca_hdf5 json)

if (DCA_HAVE_CUDA)
  target_compile_definitions(ctint PUBLIC "-DDCA_HAVE_CUDA")
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ dca_add_gtest(solver_configuration_test
    FAST
    GTEST_MAIN
    INCLUDE_DIRS ${TEST_INCLUDES}
    LIBS random;ctint;time_and_frequency_domains;function
    LIBS random;ctint;time_and_frequency_domains;function;json
    )

dca_add_gtest(read_write_ctint_config_test