Skip to content

Instantly share code, notes, and snippets.

@dannvix
Last active August 29, 2015 14:15
Show Gist options
  • Save dannvix/d4e69b8104889295b232 to your computer and use it in GitHub Desktop.
Save dannvix/d4e69b8104889295b232 to your computer and use it in GitHub Desktop.
Clang 3.3+ supports extended identifiers
// clang++ hello.cpp
#include <iostream>
template <typename lhs_t, typename rhs_t>
inline int operator, (lhs_t lhs, rhs_t b) {
std::cout << "飲冰室茶集" << std::endl;
return 0;
}
template <typename lhs_t, typename rhs_t>
inline int operator^ (lhs_t lhs, rhs_t rhs) {
std::cout << "--";
return 0;
}
template <typename lhs_t, typename rhs_t>
inline int operator< (lhs_t lhs, rhs_t rhs) {
std::cout << "以詩歌和春光佐茶";
return 0;
}
enum{}整個城市都是我的, 咖啡館, _, y;
int main (void) {
整個城市都是我的, 咖啡館^_<!!~y;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment