Skip to content

Instantly share code, notes, and snippets.

Vittorio Romeo SuperV1234

View GitHub Profile
View scelta_single_header.hpp
// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
#include <utility>
#ifndef FWD
View scelta_single_header.hpp
// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
#include <utility>
#ifndef FWD
View stylish_github.css
@-moz-document domain("githubusercontent.com"), regexp("^https?://((gist|guides|help|raw|status|developer)\\.)?github\\.com((?!generated_pages/preview).)*$") {
/*! Github Dark Theme v1.17.33 (2017-06-19) *//*
* https://github.com/StylishThemes/GitHub-Dark
* http://userstyles.org/styles/37035
* License: https://creativecommons.org/licenses/by-sa/4.0/
*/
/* AGENT_SHEET */
body {
background-color: #222 !important;
background-image: none !important;
View stylish_stackoverflow.css
@-moz-document domain("serverfault.com"), domain("superuser.com"), domain("stackapps.com"), domain("mathoverflow.net"), domain("askubuntu.com"), regexp("^https?://((chat|meta|es|ja|pt|ru)\\.)*stackoverflow\\.com.*"), regexp("^https?://((?!(www|area51|gaming)).*\\.)?stackexchange\\.com.*") {
/***************************************************************
Stack Overflow Dark v2.10.3 (2017-06-15)
https://github.com/StylishThemes/StackOverflow-Dark
http://userstyles.org/styles/35345
** Will apply to almost all Stack Exchange Sites **
Except:
* Area 51 (area51.stackexchange.com)
* Gaming (gaming.stackexchange.com)
View oss_benchmark.cpp
#include <algorithm>
#include <chrono>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string>
#include <vector>
#define FWD(...) ::std::forward<decltype(__VA_ARGS__)>(__VA_ARGS__)
View adl_printables.cpp
#include <iostream>
#include <vector>
#include <tuple>
namespace foo
{
template <typename T>
struct print final
{
const T& _x;
View rustwhy.md

I'm having some trouble with the borrow checker. I want to do this:

 for entry in WalkDir::new(".")
    .into_iter()
    .filter_map(|e| e.ok())
    .map(|e| e.path().parent().unwrap())
{}
View clang_error_tsv
./typesafevariant3.cpp:13:43: error: no member named 'bar' in 'type_safe::nullvar_t'
auto operator()(T x) const { return x.bar(); }
~ ^
/usr/local/include/type_safe/visitor.hpp:180:29: note: in instantiation of function template
specialization 'visitor::operator()<type_safe::nullvar_t>' requested here
-> decltype(std::forward<Visitor>(visitor)(std::forward<Args>(args)...))
^
/usr/local/include/type_safe/visitor.hpp:194:29: note: while substituting deduced template arguments
into function template 'call_impl' [with Args = <const type_safe::nullvar_t &>]
-> decltype(call_impl(0, std::forward<Visitor>(visitor),
View tsv.cpp
#include <functional>
#include <type_safe/variant.hpp>
#include <type_safe/visitor.hpp>
#include <utility>
#define FWD(...) ::std::forward<decltype(__VA_ARGS__)>(__VA_ARGS__)
template <typename... Ts>
struct overload_set : Ts...
{
View unoverload.cpp
#include <type_traits>
#include <utility>
#include <iostream>
#include <tuple>
#include <cassert>
using namespace std;
template <typename... Ts>
struct overloader : Ts...
You can’t perform that action at this time.