diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..09f2274 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea/* +cmake-build-*/* diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..9f036a4 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,4 @@ +cmake_minimum_required(VERSION 3.9) +project(NamedType) + +add_executable(named_type main.cpp) \ No newline at end of file diff --git a/main.cpp b/main.cpp index 93a2ce3..fc89997 100644 --- a/main.cpp +++ b/main.cpp @@ -46,7 +46,7 @@ TEST_CASE("Basic usage") using NameRef = fluent::NamedType; -void changeValue(const NameRef name) +void changeValue(NameRef name) { name.get() = "value2"; }