memgraph/poc/isolation.cpp
Kruno Tomola Fabro 77a3298d1e tmp
2016-08-28 15:47:13 +01:00

27 lines
569 B
C++

// Making it as first import will prevent accidentaly importing to isolated
// other code.
#include "isolation/isolated.hpp"
#include <iostream>
#include "isolation/db.hpp"
#include "isolation/header.hpp"
// using namespace base;
int main()
{
std::cout << sizeof(Accessor) << " : " << alignof(Accessor) << "\n";
std::cout << sizeof(sha::Accessor) << " : " << alignof(sha::Accessor)
<< "\n";
Db db;
db.data = 207;
auto ret = sha::do_something(reinterpret_cast<sha::Db &>(db));
std::cout << ret << std::endl;
return 0;
}