This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pimpl_impl.h" | |
#include "A.h" | |
template<> | |
struct pimpl<A>::implementation | |
{ | |
void foo() | |
{ | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
public class Program | |
{ | |
public static IEnumerable<int> UsingYield() | |
{ | |
yield return 42; | |
} | |
public static IEnumerable<int> ReturningArray() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test | |
*.gch | |
*.o | |
tags | |
.depends |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.swp | |
*.o | |
inireader.so | |
test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: test | |
#CPPFLAGS+=-std=c++0x | |
CPPFLAGS+=-g -O3 | |
CPPFLAGS+=-Wall | |
%:%.cpp | |
g++ $(CPPFLAGS) $^ -o $@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/config/warning_disable.hpp> | |
#include <boost/spirit/include/qi.hpp> | |
#include <boost/spirit/include/phoenix.hpp> | |
#include <iostream> | |
#include <string> | |
namespace client | |
{ | |
namespace qi = boost::spirit::qi; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all:mini alternative | |
CPPFLAGS+=-std=c++0x | |
CPPFLAGS+=-g -O0 | |
%.o:%.cpp | |
g++ $(CPPFLAGS) $^ -o $@ $(LDFLAGS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func! PositionLessThanEqual(a, b) | |
" echo 'a: ' . string(a:a) | |
" echo 'b: ' . string(a:b) | |
if (a:a[0] == a:b[0]) | |
return (a:a[1] <= a:b[1]) ? 1 : 0 | |
else | |
return (a:a[0] <= a:b[0]) ? 1 : 0 | |
endif | |
endf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace SODemo | |
{ | |
public class DefaultingDictionary<TKey, TValue> : IDictionary<TKey, TValue> | |
{ | |
public static implicit operator DefaultingDictionary<TKey,TValue>(Dictionary<TKey,TValue> wrappable) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <stdexcept> | |
#include <array> | |
#include <vector> | |
#include <iostream> | |
#define _byteswap_uint64 __builtin_bswap64 | |
#define _rotr(x,k) (((x)>>(k)) | ((x)<<(32-(k)))) | |
template<typename T> struct Output { |