* [PATCH][libstdc++-v3 parallel mode] Do not declare a mutable reference
@ 2011-01-24 17:13 Johannes Singler
2011-01-24 18:49 ` Benjamin Kosnik
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Singler @ 2011-01-24 17:13 UTC (permalink / raw)
To: libstdc++, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 431 bytes --]
Mainline was failing to compile the parallel mode multiway merge
facilities because of a spurious mutable reference.
Test on x86_64-unknown-linux-gnu: no regressions.
Pre-approved by Jonathan Wakely, committed.
2011-01-24 Johannes Singler <singler@kit.edu>
PR libstdc++/47437
* include/parallel/multiway_merge.h (_UnguardedIterator):
Remove useless "mutable" from reference declaration.
Johannes
[-- Attachment #2: no_mutable_ref.patch --]
[-- Type: text/x-patch, Size: 490 bytes --]
Index: include/parallel/multiway_merge.h
===================================================================
--- include/parallel/multiway_merge.h (revision 169160)
+++ include/parallel/multiway_merge.h (working copy)
@@ -143,7 +143,7 @@
/** @brief Current iterator __position. */
_RAIter _M_current;
/** @brief _Compare. */
- mutable _Compare& __comp;
+ _Compare& __comp;
public:
/** @brief Constructor. Sets iterator to beginning of sequence.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH][libstdc++-v3 parallel mode] Do not declare a mutable reference
2011-01-24 17:13 [PATCH][libstdc++-v3 parallel mode] Do not declare a mutable reference Johannes Singler
@ 2011-01-24 18:49 ` Benjamin Kosnik
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Kosnik @ 2011-01-24 18:49 UTC (permalink / raw)
To: Johannes Singler; +Cc: libstdc++, gcc-patches
> Mainline was failing to compile the parallel mode multiway merge
> facilities because of a spurious mutable reference.
Ah ha! You beat me to it. Thanks.
-benjamin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-24 18:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-24 17:13 [PATCH][libstdc++-v3 parallel mode] Do not declare a mutable reference Johannes Singler
2011-01-24 18:49 ` Benjamin Kosnik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).