lsst.gauss2d.fit g199a45376c+5e234f8357
 
Loading...
Searching...
No Matches
utils.h
1#ifndef LSST_GAUSS2D_FIT_PYBIND11_UTILS_H
2#define LSST_GAUSS2D_FIT_PYBIND11_UTILS_H
3
4#include <string>
5
6namespace lsst::gauss2d::fit {
7// This is so annoying that I'm considering borrowing a solution for static string
8template <typename T>
9constexpr std::string_view suffix_type();
10
11template <>
12constexpr std::string_view suffix_type<double>() {
13 return "D";
14}
15
16template <typename T>
17std::string suffix_type_str() {
18 return std::string(suffix_type<T>());
19}
20
21} // namespace lsst::gauss2d::fit
22
23#endif