--- mstools/h/iomanip.h 2018/08/09 18:21:06 1.1.1.1 +++ mstools/h/iomanip.h 2018/08/09 18:23:01 1.1.1.2 @@ -1,7 +1,7 @@ /*** *iomanip.h - definitions/declarations for iostream's parameterized manipulators * -* Copyright (c) 1991-1992, Microsoft Corporation. All rights reserved. +* Copyright (c) 1991-1993, Microsoft Corporation. All rights reserved. * *Purpose: * This file defines the classes, values, macros, and functions @@ -44,8 +44,8 @@ class SMANIP(T) { \ public: \ SMANIP(T)(ios& (*f)(ios&,T), T t) { _fp = f; _tp = t; } \ - friend istream& operator>>(istream& s, SMANIP(T) & sm) { (*(sm._fp))(s,sm._tp); return s; } \ - friend ostream& operator<<(ostream& s, SMANIP(T) & sm) { (*(sm._fp))(s,sm._tp); return s; } \ + friend istream& operator>>(istream& s, const SMANIP(T) & sm) { (*(sm._fp))(s,sm._tp); return s; } \ + friend ostream& operator<<(ostream& s, const SMANIP(T) & sm) { (*(sm._fp))(s,sm._tp); return s; } \ private: \ ios& (* _fp)(ios&,T); \ T _tp; \