Skip to content

Instantly share code, notes, and snippets.

@theoremoon
Created January 12, 2015 05:50
Show Gist options
  • Save theoremoon/17c661b9488e8ab350ad to your computer and use it in GitHub Desktop.
Save theoremoon/17c661b9488e8ab350ad to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
constexpr unsigned long long int operator"" _K(unsigned long long int n){
return n*1024;
}
int main(){
std::cout << 1_K << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment