Skip to content

Instantly share code, notes, and snippets.

@mryoshio
Last active December 23, 2015 16:19
Show Gist options
  • Save mryoshio/6660908 to your computer and use it in GitHub Desktop.
Save mryoshio/6660908 to your computer and use it in GitHub Desktop.
#include <boost/utility/binary.hpp>
#include <iostream>
using namespace std;
#define B(x) BOOST_BINARY(x)
void row1() {
cout << "# row1" << endl;
cout << (B(0110) + B(0010)) << endl;
cout << (B(0011) * B(0101)) << endl;
cout << (B(0110) + B(0110)) << endl;
cout << (B(0110) << 1) << endl;
}
int main() {
row1();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment