hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/examples/hello.sfinae
blob: 0154af836800b452c20c902fb37747fba5e58402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// hello, world
// there are no strings. a ::tuple says what its elements say, glued together,
// and each element is a character type, its own distance from '\0'

::emit<
    ::tuple<
        ::integral_constant<::char, ::difference<'H', '\0'>>,
        ::integral_constant<::char, ::difference<'e', '\0'>>,
        ::integral_constant<::char, ::difference<'l', '\0'>>,
        ::integral_constant<::char, ::difference<'l', '\0'>>,
        ::integral_constant<::char, ::difference<'o', '\0'>>,
        ::integral_constant<::char, ::difference<',', '\0'>>,
        ::integral_constant<::char, ::difference<' ', '\0'>>,
        ::integral_constant<::char, ::difference<'w', '\0'>>,
        ::integral_constant<::char, ::difference<'o', '\0'>>,
        ::integral_constant<::char, ::difference<'r', '\0'>>,
        ::integral_constant<::char, ::difference<'l', '\0'>>,
        ::integral_constant<::char, ::difference<'d', '\0'>>,
        ::integral_constant<::char, ::difference<'!', '\0'>>
    >
>::commit;