Skip to content

Instantly share code, notes, and snippets.

View meastp's full-sized avatar

Mats Taraldsvik meastp

View GitHub Profile
// TODO: use generic type for count, so tao::pegtl::uint8::any, tao::pegtl::uint32::any etc. can be used instean of
// hard coded std::uint32_t
template<typename Rule >
struct counted_rep
{
using rule_t = counted_rep;
using subs_t = type_list< Rule >;
template< tao::pegtl::apply_mode A,
tao::pegtl::rewind_mode M,
example_model.lib + .dll is the data model
application A is compiled with compiler A
and
library B is compiled with compiler B
The example_model can exist as a single version, compiled with either compiler A or B, or two versions.
Is it possible for application A to use library B to e.g. read or process a set of Lines, then retrieve them through the cross-compilation framework, and *continue working with the data model in application A* (for example change some points, add some attributes)?
@meastp
meastp / main.cpp
Created February 17, 2012 11:04
Adaption of legacy objects to boost::geometry concepts
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/range.hpp>
#include <boost/iterator/iterator_facade.hpp>
#include "objdefs.h"