Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Fix non-compile error #30

wants to merge 2 commits into from

Conversation

conradjones
Copy link

Added CMakeLists.txt for compilation with CMake and any IDE that supports CMake.

Removed const qualifier from function parameter where function modifiers 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)
Copy link
Contributor

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)
Copy link
Contributor

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)
Copy link
Contributor

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.

Copy link
Owner

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

@knatten
Copy link
Contributor

knatten commented Sep 27, 2019

This fixes #23

@knatten
Copy link
Contributor

knatten commented Sep 27, 2019

Could be an idea to split out the compilation error fix as a separate PR which will be a no-brainer to accept?

@travnick
Copy link
Contributor

see #37

@joboccara
Copy link
Owner

This should be covered by PR #24

@joboccara joboccara closed this Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants