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
namespace smart | |
{ | |
// 引用计数类. | |
class smart_count | |
{ | |
public: | |
smart_count(int c = 0) : use_count(c) {} | |
~smart_count() {} | |
// 增加引用计数, 并返回计数值. |
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 any | |
{ | |
public: // structors | |
any() | |
: content(0) | |
{ | |
} | |
template<typename ValueType> |
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
#ifndef __CIRCULAR_BUFFER_H__ | |
#define __CIRCULAR_BUFFER_H__ | |
#if defined(_MSC_VER) && (_MSC_VER >= 1020) | |
# pragma once | |
#endif | |
#ifndef min | |
#define min(a,b) (((a) < (b)) ? (a) : (b)) | |
#endif |
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
int __cdecl sub_49989E(int a1) | |
{ | |
int result; // eax@1 | |
signed int v2; // esi@1 | |
int v3; // ecx@1 | |
int v4; // edi@2 | |
int v5; // edx@2 | |
char *v6; // ecx@3 | |
signed int v7; // edx@3 | |
int v8; // esi@4 |
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
bjam --without-graph --without-graph_parallel --without-math --without-wave -s BZIP2_SOURCE=D:\bzip2-1.0.6 -s ZLIB_SOURCE=D:\zlib-1.2.7 debug release stage link=static runtime-link=static -j8 | |
bjam --without-graph --without-graph_parallel --without-math --without-wave -s BZIP2_SOURCE=D:\bzip2-1.0.6 -s ZLIB_SOURCE=D:\zlib-1.2.7 debug release stage link=static runtime-link=shared -j8 | |
bjam --without-graph --without-graph_parallel --without-math --without-wave -s BZIP2_SOURCE=D:\bzip2-1.0.6 -s ZLIB_SOURCE=D:\zlib-1.2.7 debug release stage link=shared runtime-link=shared -j8 | |
bjam --without-graph --without-graph_parallel --without-math --without-wave -s BZIP2_SOURCE=D:\bzip2-1.0.6 -s ZLIB_SOURCE=D:\zlib-1.2.7 debug release stage link=shared runtime-link=shared -j8 threading=single | |
bjam --without-graph --without-graph_parallel --without-math --without-wave -s BZIP2_SOURCE=D:\bzip2-1.0.6 -s ZLIB_SOURCE=D:\zlib-1.2.7 debug release stage link=static runtime-link=shared -j8 threading=single | |
bjam --without-graph --without |
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 <boost/foreach.hpp> | |
#include <boost/property_tree/json_parser.hpp> | |
namespace pt = boost::property_tree; | |
using pt::ptree; | |
template <class Stream> | |
void list_json(ptree json, Stream &stream, int level = 0) | |
{ | |
if (level == 0) | |
{ |
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
From 81a6a51c0cb66de6bc77e1fa5dcd46b2794995e4 Mon Sep 17 00:00:00 2001 | |
From: Christopher Kohlhoff <[email protected]> | |
Date: Wed, 23 Mar 2011 15:03:56 +1100 | |
Subject: [PATCH] On Windows, ensure the count of outstanding work is decremented for | |
abandoned operations (i.e. operations that are being cleaned up within | |
the io_service destructor). | |
--- | |
asio/include/asio/detail/impl/dev_poll_reactor.ipp | 2 ++ | |
asio/include/asio/detail/impl/epoll_reactor.ipp | 2 ++ |
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
// | |
// async_read_body.hpp | |
// ~~~~~~~~~~~~~~~~~~~ | |
// | |
// Copyright (c) 2013 Jack (jack dot wgm at gmail dot com) | |
// Copyright (C) 2012 - 2013 微蔡 <[email protected]> | |
// | |
// Distributed under the Boost Software License, Version 1.0. (See accompanying | |
// path LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
// |
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
## | |
## ca-bundle.crt -- Bundle of CA Root Certificates | |
## | |
## Certificate data from Mozilla as of: Sat Dec 29 20:03:40 2012 | |
## | |
## This is a bundle of X.509 certificates of public Certificate Authorities | |
## (CA). These were automatically extracted from Mozilla's root certificates | |
## file (certdata.txt). This file can be found in the mozilla source tree: | |
## http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=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
// | |
// Copyright (C) 2019 Jack. | |
// | |
// Author: jack | |
// Email: jack.wgm at gmail dot com | |
// | |
#pragma once | |
#include <clocale> |
OlderNewer