/workspace/Src/inference_lib.cpp
Line | Count | Source |
1 | | module; |
2 | | |
3 | | #include "kataglyphis_export.h" |
4 | | #include <format> |
5 | | #include <string>// NOLINT(misc-include-cleaner) |
6 | | |
7 | | module kataglyphis.inference; |
8 | | import kataglyphis.project_config; |
9 | | |
10 | | namespace kataglyphis::inference { |
11 | | |
12 | 7 | KATAGLYPHIS_CPP_API auto MyCalculator::add(int lhs, int rhs) const -> int { return lhs + rhs; } |
13 | | |
14 | | KATAGLYPHIS_CPP_API auto MyCalculator::version() const -> std::string |
15 | 2 | { |
16 | 2 | return std::format( |
17 | 2 | "{}.{}", kataglyphis::project_config::project_version_major, kataglyphis::project_config::project_version_minor); |
18 | 2 | } |
19 | | |
20 | | }// namespace kataglyphis::inference |