Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <string>
#include <boost/spirit/include/karma.hpp>
int main()
{
using boost::spirit::karma::int_;
using boost::spirit::karma::generate;
#include <iostream>
#include <string>
#include <boost/spirit/include/karma.hpp>
int main()
{
using namespace boost::spirit::karma;
std::complex<double> c(3, -1);
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <boost/phoenix/phoenix.hpp>
struct isEvenImpl
{
template<typename Arg>
static const int MaximumXPLevel = 100;
if (xpLevel <= MaximumXPLevel)
{
...
// checks that the level of XP is valid
if (xpLevel <= 100)
{
...
if (!entries.empty())
{
...
template <typename ParsedType>
ParsedType parse(SerializedInput& input)
{
ParsedType result;
// ... perform the parsing ...
return result;
}
template <typename T>
T parse(SerializedInput& input)
{
T result;
// ... perform the parsing ...
return result;
}
template<typename T>
struct is_const;
template <typename T>