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 <type_traits> | |
#include <iostream> | |
using namespace std; | |
template< class... > struct voider { using type = void; }; | |
template< class... T0toN > using void_t = typename voider<T0toN...>::type; | |
// does NOT work |
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 <type_traits> | |
#include <iostream> | |
using namespace std; | |
template<class... > using void_t = void; | |
template< class, class = void > | |
struct has_type_member : false_type { }; |
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
/* | |
Copyright 2010-2012 Karsten Ahnert | |
Copyright 2011-2013 Mario Mulansky | |
Copyright 2013 Pascal Germroth | |
Distributed under the Boost Software License, Version 1.0. | |
(See accompanying file LICENSE_1_0.txt or | |
copy at http://www.boost.org/LICENSE_1_0.txt) | |
*/ |
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 <queue> | |
#include <memory> | |
struct Foo { | |
int i; | |
}; | |
using namespace std; | |
static_assert(is_nothrow_move_constructible<shared_ptr<Foo>>::value, | |
"Shared pointer is not move constructible"); |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css" /> | |
<link rel="stylesheet" type="text/css" href="http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.min.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script type="text/javascript" src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script> | |
<!-- Optional Mousewheel support: https://github.com/brandonaaron/jquery-mousewheel --> |
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
// a test case for combining semantic actions with synthesized attributes in the same rule | |
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <iterator> | |
#include <boost/spirit/include/qi.hpp> | |
#include <boost/spirit/include/phoenix.hpp> |
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
// An attempt to generically parse expressions like this: | |
// <token> <int> ; | |
// - <some-expr> ; | |
// - <some-expr> ; | |
// - <some-expr> ; <- exactly as many times as given by <int> above | |
// END <token> | |
// where <token> is a string, and <some-expr> is a rule with attribute A | |
// the synthesized attribute of the result should be a fusion sequence of A | |
// Furthermore the resulting grammar should check the number of <some-expr> and ensure it | |
// matches the supplied <int>, with (ideally) a suitable error message |
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
// A test case for gcc 4.7.2 crash | |
// Author: Jeff Trull <[email protected]> | |
#include <vector> | |
#include <algorithm> | |
template<class Base> | |
class MyClass : Base | |
{ | |
public: |
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
<apex:page controller="DateIssueRepro"> | |
<!-- Simple VF page to demonstrate issue with setting Date fields of SObjects via Remoting --> | |
<!-- This is case 08471144 --> | |
<!-- Author: Jeff Trull <[email protected]> 2012-12-09 --> | |
<apex:form > | |
<table> | |
<tr> | |
<th>Date source</th> | |
<th>New value</th> | |
</tr> |
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
public with sharing class DateIssueRepro { | |
// controller for testing Date setting issue ( case 08471144 ) | |
// 2012-12-09 Jeff Trull <[email protected]> | |
public String selectedSer { get; set; } // only needed to set default | |
public DateIssueRepro() { | |
// initialize serialization method | |
selectedSer = 'none'; | |
} | |