Skip to content

Instantly share code, notes, and snippets.

View metopa's full-sized avatar

Viacheslav Kroilov metopa

  • Prague, Czech Republic
View GitHub Profile
@metopa
metopa / gcc6-bug.cpp
Created July 31, 2018 03:48
GCC <=6 bug
template <typename T>
struct A {
template <typename V>
void foo() { }
template <typename U>
struct B {
A* a_;
void foo() { return a_->foo<U>(); }
};
@metopa
metopa / functional_unwrap.hpp
Last active March 12, 2017 12:41 — forked from Naios/functional_unwrap.hpp
C++ functional argument unwrap traits. Extracts argument and return types of functions, std:.function and std::tuple's
/*
* Copyright (C) 2015 Naios <naios-dev@live.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
#include <cstdint>
#include <iostream>
#include <functional>
#include <vector>
#include <algorithm>
using std::vector;
using std::function;
using std::cout;
using std::endl;
@metopa
metopa / taglib.pro
Created December 9, 2015 20:29
.pro file for a taglib library version 1.10
TEMPLATE = lib
INCLUDEPATH += $$PWD
INCLUDEPATH += $$PWD/..
INCLUDEPATH += $$PWD/ape
INCLUDEPATH += $$PWD/asf
INCLUDEPATH += $$PWD/CMakeFiles
INCLUDEPATH += $$PWD/flac
INCLUDEPATH += $$PWD/it
INCLUDEPATH += $$PWD/mod