@@ -1,6 +1,11 @@ | |||
cmake_minimum_required(VERSION 3.11) | |||
project(PackageTest CXX) | |||
set(CMAKE_CXX_STANDARD 17) | |||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | |||
set(CMAKE_CXX_EXTENSIONS OFF) | |||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | |||
conan_basic_setup() | |||
@@ -1,6 +1,12 @@ | |||
#include <iostream> | |||
#include "hello.h" | |||
#include <scope.h> | |||
int main() { | |||
hello(); | |||
int main() | |||
{ | |||
sr::scope_exit se{[]{}}; | |||
sr::scope_fail sf{[]{}}; | |||
sr::scope_success ss{[]{}}; | |||
sr::unique_resource ur{3, [](auto x){}}; | |||
return 0; | |||
} |