You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, that's not what I meant. The code will compile under C++03.
I maintain a project (cppbackport) that implements C++11/14/17 stuff in C++03, so that's ultimately where it came from. I was just mentioning what the code does, if you were going to run it.
Sorry, I think the use of conjunction has confused things. The issue doesn't really have anything to do with std::conjunction except that I chose to use it for the example.
Activity
CDanU commentedon Feb 10, 2017
This is caused by
sp_before_byref = remove.I am not entirely sure what the
&&inare supposed to mean.
jlee975 commentedon Feb 11, 2017
It's boolean AND, just as if it were in (true && false).
guy-maurel commentedon Mar 17, 2017
Could please push a complete example. I would like to compile and run it.
jlee975 commentedon Mar 17, 2017
I"ve updated conditional.cpp, etc in https://github.com/jlee975/uncrustify-tests
Uncrustify version from commit 766207c
It is a simple implementation of std::conjunction from C++17
guy-maurel commentedon Mar 17, 2017
We don't support C++17 now.
But, if you want to join us, we will be very happy.
jlee975 commentedon Mar 17, 2017
Sorry, that's not what I meant. The code will compile under C++03.
I maintain a project (cppbackport) that implements C++11/14/17 stuff in C++03, so that's ultimately where it came from. I was just mentioning what the code does, if you were going to run it.
guy-maurel commentedon May 4, 2017
http://en.cppreference.com/w/cpp/types/conjunction shows:
template<class... B>
struct conjunction;
(1) (since C++17)
We take it in the TODO list
jlee975 commentedon May 4, 2017
Sorry, I think the use of conjunction has confused things. The issue doesn't really have anything to do with std::conjunction except that I chose to use it for the example.
The issue is that for
the && is formatted with sp_before_byref/sp_after_byref when it should be sp_arith
A bugfix for uncrustify#1002
guy-maurel commentedon May 8, 2017
A proposal is PR#1141
Merge pull request #1141 from guy-maurel/LoseSpaceTemplate
gmaurel commentedon May 11, 2017
is fixed
jlee975 commentedon May 11, 2017
Thanks for your help with this