[llvm-commits] [llvm] r48782 - /llvm/trunk/include/llvm/Support/Streams.h

Bill Wendling isanbard at gmail.com
Tue Mar 25 11:16:52 PDT 2008


Author: void
Date: Tue Mar 25 13:16:52 2008
New Revision: 48782

URL: http://llvm.org/viewvc/llvm-project?rev=48782&view=rev
Log:
De-constify the input to the "operator >>" method as it is modified.
Patch by dekruijf at cs.wisc.edu!

Modified:
    llvm/trunk/include/llvm/Support/Streams.h

Modified: llvm/trunk/include/llvm/Support/Streams.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Streams.h?rev=48782&r1=48781&r2=48782&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/Streams.h (original)
+++ llvm/trunk/include/llvm/Support/Streams.h Tue Mar 25 13:16:52 2008
@@ -46,7 +46,7 @@
     }
 
     template <typename Ty>
-    BaseStream &operator >> (const Ty &Thing) {
+    BaseStream &operator >> (Ty &Thing) {
       if (Stream) *Stream >> Thing;
       return *this;
     }





More information about the llvm-commits mailing list