Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
class Experiment
{
//ErrorsFor takes a hayStack, a bunch of needles, and is supposed to invoke errorMessage generator for everything
//in the haystack that matches a certain needle. As an excersice, i've been trying out all the different ways
//to write it, and evaluate for clarity, conciceness, readability by others, readability by me.
//
// TemplateTester.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
template<class T> struct Converter {};
struct TheMagicTypeToFind {};
struct MyConverter : Converter<TheMagicTypeToFind> //I want to store the magic type here
#include "../../lib/haywire/lib/libuv/include/uv.h"
#include "haywire.h"
#include "dazzle.h"
#include "http_server.h"
namespace dazzle {
HttpServer::HttpServer(Database* database)
{
this->database = database;
/*
For some reason the memory consumed in ReadFile() isn't released
when getchar() in main() is hit. Why isn't the scope of the stack releasing it?
Also, I don't know why the output is wrong. Here is the expected and actual output.
EWAHBoolArray code I am using can be found here:
https://github.com/lemire/EWAHBoolArray
This code is indexing the year column.