summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/xmake_tests4/src/work.mpp
blob: 27b5f20898241e7b1797e60451c49b32b06cd22b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export module work;
import std;

export
template<typename T>
void do_work() {
    if constexpr (std::is_same_v<T, int>) {
        std::println("Hello world!");
    } else if constexpr (std::is_same_v<T, double>) {
        std::println("Hello test!");
    } else {
        std::println("Hello unknown type!");
    }
}