alpaka
Abstraction Library for Parallel Kernel Acceleration
DemangleTypeNames.hpp
Go to the documentation of this file.
1 /* Copyright 2022 Andrea Bocci, Antonio Di Pilato
2  * SPDX-License-Identifier: MPL-2.0
3  */
4 
5 #pragma once
6 
8 
9 #include <boost/core/demangle.hpp>
10 
11 namespace alpaka::core
12 {
13 #if BOOST_COMP_CLANG
14 # pragma clang diagnostic push
15 # pragma clang diagnostic ignored "-Wexit-time-destructors"
16 # pragma clang diagnostic ignored "-Wmissing-variable-declarations"
17 #endif
18  template<typename T>
19  inline const std::string demangled = boost::core::demangle(typeid(T).name());
20 #if BOOST_COMP_CLANG
21 # pragma clang diagnostic pop
22 #endif
23 } // namespace alpaka::core
const std::string demangled