This file contains 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 "stdafx.h" | |
#include <iostream> | |
#include <thread> | |
#include <future> | |
#include <chrono> | |
using namespace std; | |
using namespace std::chrono; |
This file contains 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
class my_class | |
{ | |
public: | |
struct args { | |
nullable<int> some_int; | |
nullable<float> some_float; | |
}; | |
template<typename args_func> | |
my_class(args_func get_args) |
This file contains 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 "IDbService.h" | |
class AdoService : public IDbService { | |
public: | |
static AdoService& instance() override; | |
QueryResult runQuery(string query) override; | |
}; |
This file contains 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
// main() | |
course.where(course.name == "Argh" && course.name == "Test"); | |
////////////////////// | |
// FieldExpression.h | |
////////////////////// | |
// && operator for two FieldExpression<>'s. | |
template<typename L, typename R> |
This file contains 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
class Course : public Model { | |
[...] | |
public: | |
Field<std::string> name; | |
Field<long> weeks; | |
public: | |
Relation<Course, HasOne, Professor> professor; |
This file contains 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
1133,1135c1133 | |
< case 0x60ff018b: | |
< case 0x0424448b: // bkuhns: added just for fiddling with COM. Doesn't seem to work... | |
< return *(unsigned char *)(func + 4) / 4; | |
--- | |
> case 0x60ff018b: return *(unsigned char *)(func + 4) / 4; | |
1568d1565 | |
< #if 0 | |
1580,1604d1576 | |
< #else |
This file contains 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
#import <system/ado/msado15.dll> rename_namespace("ADONS"), rename("EOF", "adoEOF") | |
#include <hippomocks.h> | |
int main() | |
{ | |
MockRepository mocks; | |
auto pConn = mocks.Mock<ADONS::_Connection>(); | |
mocks.OnCall(pConn, ADONS::_Connection::AddRef).Return(1); |
This file contains 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
SCENARIO("...", "[...]") | |
{ | |
QEventLoop eventLoop; | |
MockRepository mockRepo; | |
GIVEN("An exporter") { | |
auto exporterAndMocks = setUpExporterAndMocks(); | |
auto exporter = exporterAndMocks.first; | |
auto mocks = exporterAndMocks.second; |
This file contains 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 <iostream> | |
#include <cstdint> | |
using namespace std; | |
//The following iterative sequence is defined for the set of positive integers: | |
// | |
//n → n/2 (n is even) | |
//n → 3n + 1 (n is odd) |
This file contains 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 <iostream> | |
#include <memory> | |
#include "Foo.hpp" | |
#include "Bar.hpp" | |
int main() | |
{ | |
auto bar = Bar{}; |
OlderNewer