-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix non-compile error #30
Conversation
…e there as the function modifies the reference parameter
@@ -46,7 +46,7 @@ TEST_CASE("Basic usage") | |||
|
|||
using NameRef = fluent::NamedType<std::string&, struct NameRefParameter>; | |||
|
|||
void changeValue(const NameRef name) | |||
void changeValue(NameRef name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice that you fixed this compilation error!
@@ -0,0 +1,4 @@ | |||
cmake_minimum_required(VERSION 3.9) | |||
project(NamedType) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe change this to project(NamedType CXX)
to indicate that it's a C++ project.
@@ -0,0 +1,4 @@ | |||
cmake_minimum_required(VERSION 3.9) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to require a cmake version this recent? Could be good to allow users on older cmake versions to use this as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about using 3.12? This is the version I use in the pipes library
This fixes #23 |
Could be an idea to split out the compilation error fix as a separate PR which will be a no-brainer to accept? |
see #37 |
This should be covered by PR #24 |
Added CMakeLists.txt for compilation with CMake and any IDE that supports CMake.
Removed const qualifier from function parameter where function modifiers parameter.