OSDN Git Service
(root)
/
timidity41
/
timidity41.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef9a2a3
)
libstdc++ does not have std::transform_reduce()
author
Starg
<starg@users.osdn.me>
Mon, 28 May 2018 02:48:19 +0000
(11:48 +0900)
committer
Starg
<starg@users.osdn.me>
Mon, 28 May 2018 02:48:19 +0000
(11:48 +0900)
interface/w32g_new_console.cpp
patch
|
blob
|
history
diff --git
a/interface/w32g_new_console.cpp
b/interface/w32g_new_console.cpp
index
5ca16bf
..
01bdc8f
100644
(file)
--- a/
interface/w32g_new_console.cpp
+++ b/
interface/w32g_new_console.cpp
@@
-352,17
+352,13
@@
public:
std::size_t GetColumnLength(std::size_t line) const
{
- return std::
transform_reduc
e(
+ return std::
accumulat
e(
m_Fragments.begin() + m_Lines[line].Offset,
m_Fragments.begin() + m_Lines[line].Offset + m_Lines[line].Length,
0,
- [] (auto
a, auto
b)
+ [] (auto
&& a, auto&&
b)
{
- return a + b;
- },
- [] (auto&& a)
- {
- return a.Length;
+ return a + b.Length;
}
);
}