mreineck / pocketfft

Fork of https://gitlab.mpcdf.mpg.de/mtr/pocketfft to simplify external contributions
BSD 3-Clause "New" or "Revised" License
71 stars 34 forks source link

Add missing include #18

Closed nikitamikhaylov closed 1 month ago

nikitamikhaylov commented 1 month ago

Added missing include which prevented the library from being compiled successfully using recent version of libcxx. Found during the upgrade of ClickHouse's LLVM dependency to 18.x version.

/home/ubuntu/ClickHouse/ClickHouse/contrib/pocketfft/pocketfft_hdronly.h:796:22: error: variable has incomplete type 'std::exception_ptr'
  796 |   std::exception_ptr ex;
      |                      ^
/home/ubuntu/ClickHouse/ClickHouse/contrib/llvm-project/libcxx/include/__exception/operations.h:36:33: note: forward declaration of 'std::exception_ptr'
   36 | class _LIBCPP_EXPORTED_FROM_ABI exception_ptr;
      |                                 ^
In file included from /home/ubuntu/ClickHouse/ClickHouse/src/Functions/seriesPeriodDetectFFT.cpp:9:
/home/ubuntu/ClickHouse/ClickHouse/contrib/pocketfft/pocketfft_hdronly.h:808:14: error: calling 'current_exception' with incomplete return type 'exception_ptr'
  808 |         ex = std::current_exception();
      |              ^~~~~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/ClickHouse/ClickHouse/contrib/llvm-project/libcxx/include/__exception/operations.h:38:41: note: 'current_exception' declared here
   38 | _LIBCPP_EXPORTED_FROM_ABI exception_ptr current_exception() _NOEXCEPT;
      |                                         ^
/home/ubuntu/ClickHouse/ClickHouse/contrib/llvm-project/libcxx/include/__exception/operations.h:36:33: note: forward declaration of 'std::exception_ptr'
   36 | class _LIBCPP_EXPORTED_FROM_ABI exception_ptr;
mreineck commented 1 month ago

Thanks, I'll merge this right away!