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 inception { | |
namespace details { | |
template <typename T, typename...Args> | |
struct outer { | |
using type = queue<T, Args...>; | |
}; | |
template <typename T, typename...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
template <typename T, typename Container> | |
class queue { | |
public: | |
void push(const T &); | |
void pop(); | |
T& front(); | |
std::size_t size() const; | |
bool empty() const; | |
private: |
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
template <typename T, typename Container = std::queue<T>> | |
class stack { | |
public: | |
void push(const T &); | |
void pop(); | |
T& top(); | |
std::size_t size() const; | |
bool empty() const; | |
private: |
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 qbs 1.0 | |
import qbs.Probes | |
import "utils.js" as Utils | |
Project { | |
minimumQbsVersion: "1.6" | |
property string name: 'seastar' | |
CppApplication { | |
name: project.name |
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
#if defined(AK_OS_WINDOWS) | |
//Attempt to attach to parent | |
if(!AttachConsole(ATTACH_PARENT_PROCESS)) { | |
if(!force) | |
return false; | |
//Try to create a new window, if allowed | |
FreeConsole(); | |
if(!AllocConsole()) | |
return false; | |
SetConsoleTitle(L"Debug Console"); |
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
constexpr { | |
bool debug = /*...*/; | |
log->(std::meta::expression<const char*> c, std::meta::expression<>... args) { | |
if(debug) { | |
-> { | |
printf(->c, (->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
#!/bin/bash | |
# 1 = VMware Tools ISO is mounted from vSphere | |
# 2 = Download VMware Tools (assumes you can connect to internet) | |
INSTALL_METHOD=2 | |
# Thanks to Rich Trouton for tip on Tools being available online | |
VMWARE_TOOLS_DOWNLOAD_URL=http://softwareupdate.vmware.com/cds/vmw-desktop/fusion/7.1.2/2779224/packages/com.vmware.fusion.tools.darwin.zip.tar | |
# DO NOT MODIFY BEYOND HERE # |
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
#!/bin/bash | |
# 1 = VMware Tools ISO is mounted from vSphere | |
# 2 = Download VMware Tools (assumes you can connect to internet) | |
INSTALL_METHOD=2 | |
# Thanks to Rich Trouton for tip on Tools being available online | |
VMWARE_TOOLS_DOWNLOAD_URL=http://softwareupdate.vmware.com/cds/vmw-desktop/fusion/10.1.1/7520154/packages/com.vmware.fusion.tools.darwin.zip.tar | |
# DO NOT MODIFY BEYOND HERE # |
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
..\configure -release -opensource -confirm-license -platform win32-msvc -nomake examples -nomake tests -skip qtwebengine -skip qtactiveqt -skip qtlocation -skip qtpurchasing -skip qtscript -skip qtvirtualkeyboard -prefix /home/cor3ntin/dev/cross-compilers/windows/qt5_10base-x64 -opengl dynamic -openssl-linked -I C:\Users\cor3ntin\Documents\openssl-1.1.0f-vs2017\include64 OPENSSL_LIBS="C:\Users\cor3ntin\Documents\openssl-1.1.0f-vs2017\lib64\libsslMTd.lib C:\Users\cor3ntin\Documents\openssl-1.1.0f-vs2017\lib64\libcryptoMTd.lib" |
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
find_package(Boost 1.67 COMPONENTS system filesystem thread regex python date_time program_options) | |
if(Boost_FOUND) | |
add_library(boost_meta INTERFACE) | |
target_include_directories(boost_meta INTERFACE ${BOOST_INCLUDE_DIRS}) | |
target_compile_definitions(boost_meta INTERFACE ${Boost_DEFINITIONS}) | |
add_library( boost::system IMPORTED INTERFACE) | |
set_property(TARGET boost::system PROPERTY INTERFACE_LINK_LIBRARIES ${Boost_SYSTEM_LIBRARY} boost_meta) | |
add_library( boost::filesystem IMPORTED INTERFACE) | |
set_property(TARGET boost::filesystem PROPERTY INTERFACE_LINK_LIBRARIES ${Boost_FILESYSTEM_LIBRARY} boost_meta boost::system) | |
add_library( boost::date_time IMPORTED INTERFACE) |
OlderNewer