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
| // 保存一下 http://adventofcode.com/2015/day/7 | |
| #include <algorithm> | |
| #include <chrono> | |
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| std::string s1 = | |
| R"(123 -> x | |
| 456 -> y |
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
| Linking libstdc++ statically | |
| Christopher Baus writes about his problems linking libstdc++ statically. Yes, making C++ binaries that will work properly in different Linux distributions is somewhat painful. The problem is not so much linking libstdc++ statically – it is just a library, after all – but the runtime support required by C++ code in general, to enable features like RTTI and exception handling. | |
| The runtime support code used by different parts of a C++ application needs to be compatible. If one part of the program needs to dynamic_cast or catch objects provided by another, both parts must agree on certain implementation details: how to find vtables, how to unwind the stack, and so on. | |
| For C++ and a few other GCC-supported languages with similar features, such details are specified by a C++ ABI. Whenever the ABI used by GCC changes you'll end up with incompatible libraries produced by the different GCC versions. The same is true for plain C, but the C ABI is much simpler and has been around a lot lon |
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 (C) 2019 Jack. | |
| // | |
| // Author: jack | |
| // Email: jack.wgm at gmail dot com | |
| // | |
| #pragma once | |
| #include <clocale> |
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
| ## | |
| ## 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 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
| // | |
| // async_read_body.hpp | |
| // ~~~~~~~~~~~~~~~~~~~ | |
| // | |
| // Copyright (c) 2013 Jack (jack dot wgm at gmail dot com) | |
| // Copyright (C) 2012 - 2013 微蔡 <microcai@fedoraproject.org> | |
| // | |
| // 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 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
| From 81a6a51c0cb66de6bc77e1fa5dcd46b2794995e4 Mon Sep 17 00:00:00 2001 | |
| From: Christopher Kohlhoff <chris@kohlhoff.com> | |
| 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 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/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 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
| 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 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
| 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 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
| #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 |