Skip to content

Instantly share code, notes, and snippets.

@mosra
Last active April 11, 2023 03:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mosra/5429347 to your computer and use it in GitHub Desktop.
Save mosra/5429347 to your computer and use it in GitHub Desktop.
Most Obscure Features of C++
??=include <iostream>
namespace _ ??<
struct _ <%
bool __ = <%%>;
~_() ??< std::cout << std::endl; ??>
template<class ___> auto operator,(___ const bitand _) -> ::_::_ bitand <%
if(__ or not compl __) std::cout << ' ';
__ xor_eq compl __;
std::cout << _;
return *this;
%>
%>;
??>
%:define print ??/
_::_<%%>,
int main(int, char** argv) ??<
print "hello!",
"I'm called", 0<:argv:>,
"and 5 + 3 is", 5 + 3;
return 0;
??>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment