Legal Stuff

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this CD and Addison Wesley Longman, Inc., was aware of a trademark claim, the designations have been printed with initial capital letters.

The publisher offers discounts on this CD when ordered in quantity for special sales. For more information, please contact:

CEPUB
Addison Wesley Longman, Inc.
One Jacob Way
Reading, MA 01867
U.S.A.

The author and publisher have taken care in preparation of this CD, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein.

°ISBN 0-201-31015-5

Copyright © 1999 by Addison Wesley Longman, Inc.

More Effective C++, Scott Meyers, © 1996 by Addison Wesley Longman, Inc.
Effective C++, Second Edition, Scott Meyers, © 1998 by Addison Wesley Longman, Inc.

"Counting Objects in C++" by Scott Meyers is a slightly modified version of an article that appeared in the April 1998 issue of C/C++ Users Journal, © 1998.
"Coping with Exceptions" by Jack Reeves is a modified version of an article that appeared in the March 1996 issue of C++ Report, © 1996.
"Designing Exception-Safe Generic Containers" by Herb Sutter is a modified version of an article that appeared in the September and November-December 1997 issues of C++ Report, © 1997.
"Exception Handling: A False Sense of Security" by Tom Cargill is a modified version of an article that appeared in the November-December 1994 issue of C++ Report, © 1994.
A version of "A First Look at C++ Program Analyzers" by Scott Meyers and Martin Klaus originally appeared in the February 1997 issue of Dr. Dobb's Journal, © 1997.

Single-User License Agreement

Important: By opening the package and using this product, you agree to be bound by the terms and conditions of this license agreement.

Grant of License

Addison Wesley Longman, Inc. provides this license to each purchaser of the product. You may not distribute any copy of this product to other individuals without permission of the Publisher. This product is not to be used for commercial purposes. You may use it only for your personal use or for educational purposes on one computer at a time, unless we have given you a separate network license. You may make one copy of the product on your computer's memory (for example, hard disk) and may back that disk up. You may not rent or lease this product.

This License shall remain in effect until terminated. This License will immediately terminate without notice if you fail to comply with any of the License provisions contained herein. Upon such termination the product must be destroyed.

Limited Warranty

Addison Wesley Longman, Inc. warrants to the original purchaser ("you") that the physical media of the enclosed product are free from manufacturing defects during the period of 90 days from the date of original purchase. Addison Wesley Longman, Inc. will replace defectively manufactured media at no charge, provided you return the item with dated proof of purchase to Addison Wesley Longman, Inc. within 90 days of original purchase. If Addison Wesley Longman, Inc., is unable to replace defectively manufactured media, your purchase price will be returned.

THE INFORMATION AND COMPUTER PROGRAMS CONTAINED ON THE PHYSICAL MEDIA ARE LICENSED "AS IS" AND EXCEPT AS PROVIDED ABOVE, ADDISON WESLEY LONGMAN, INC., MAKES NO WARRANTY OR REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH RESPECT TO THIS PRODUCT, INCLUDING ITS QUALITY, PERFORMANCE, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. ADDISON WESLEY LONGMAN, INC., WILL NOT BE LIABLE FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF OR INABILITY TO USE THE PRODUCT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN NO CASE SHALL ADDISON WESLEY LONGMAN’S LIABILITY EXCEED THE AMOUNT OF THE PURCHASE PRICE. THE ABOVE WARRANTY AND REMEDIES ARE EXCLUSIVE AND NO DEALER, DISTRIBUTOR, AGENT OR EMPLOYEE IS AUTHORIZED TO MAKE ANY MODIFICATION OR ADDITION TO THEM.

Some states do not allow the exclusion of implied warranties, and if any implied warranties are found to exist, they are hereby limited in duration to the 90-day life of the above express warranty. Some states do not allow the inclusion or limitation of incidental or consequential damages or any limitation on how long implied warranties last, so these limitations may not apply to you. This warranty gives you specific rights. You may also have other rights which vary from state to state.

This License Agreement shall be governed by and construed according to the laws of the Commonwealth of Massachusetts (except for conflict of law provisions). If any provision of this License Agreement is held unenforceable, that provision shall be enforced to the maximum extent permissible, and the remaining provisions shall remain in full force and effect.

To obtain performance of this warranty, return the item with dated proof of purchase within 90 days of original purchase date to:

Addison Wesley Longman
CEPUB Professional Technical Support
One Jacob Way
Reading, MA 01867
U.S.A.

Network and Site License Agreement

For more information on Network and Site Licenses, please contact the publisher at the °Effective C++ CD Web Site or by sending email to networklicense@awl.com.

Important: By using this product, Network Licensees agree to be bound by the terms and conditions of this license agreement.

Grant of License

Addison Wesley Longman, Inc. provides this Network License for organizations intending to install the product on a Corporate Internal Network, but not including the Internet, or servers that are directly providing content to the Internet. This Network License does not grant the Licensee the rights to offer commercial products that access or derive from the product either through the World Wide Web or other electronic media. The number of simultaneous users will not exceed the license purchase listed in the network/site license pricing table provided to Network and Site Licensees.

Network Licensees may copy this product as reasonably expected with routine network backups. This product may not be rented or leased.

This Network License shall remain in effect until terminated. This Network License will immediately terminate without notice if the Network Licensee fails to comply with any of the Network License provisions contained herein. Upon such termination, all copies of the product must be removed from all servers and destroyed.

Limited Warranty

Addison Wesley Longman, Inc. warrants to the original purchaser ("Network Licensee") that the physical media of the enclosed product are free from manufacturing defects during the period of 90 days from the date of original purchase. Addison Wesley Longman, Inc. will replace defectively manufactured media at no charge, provided Network Licensees return the item with dated proof of purchase to Addison Wesley Longman, Inc. within 90 days of original purchase.

THE INFORMATION AND COMPUTER PROGRAMS CONTAINED ON THE PHYSICAL MEDIA ARE LICENSED "AS IS" AND EXCEPT AS PROVIDED ABOVE, ADDISON WESLEY LONGMAN, INC., MAKES NO WARRANTY OR REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH RESPECT TO THIS PRODUCT, INCLUDING ITS QUALITY, PERFORMANCE, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. ADDISON WESLEY LONGMAN, INC., WILL NOT BE LIABLE FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF OR INABILITY TO USE THE PRODUCT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN NO CASE SHALL ADDISON WESLEY LONGMAN’S LIABILITY EXCEED THE AMOUNT OF THE PURCHASE PRICE. THE ABOVE WARRANTY AND REMEDIES ARE EXCLUSIVE AND NO DEALER, DISTRIBUTOR, AGENT OR EMPLOYEE IS AUTHORIZED TO MAKE ANY MODIFICATION OR ADDITION TO THEM.

Some states do not allow the exclusion of implied warranties, and if any implied warranties are found to exist, they are hereby limited in duration to the 90-day life of the above express warranty. Some states do not allow the inclusion or limitation of incidental or consequential damages or any limitation on how long implied warranties last, so these limitations may not apply to Network Licensees. This warranty gives Network Licensees specific rights. Network Licensees may also have other rights which vary from state to state.

This Network License Agreement shall be governed by and construed according to the laws of the Commonwealth of Massachusetts (except for conflict of law provisions). If any provision of this Network License Agreement is held unenforceable, that provision shall be enforced to the maximum extent permissible, and the remaining provisions shall remain in full force and effect.

To obtain performance of this warranty, return the item with dated proof of purchase within 90 days of original purchase date to:

Addison Wesley Longman
CEPUB Professional Technical Support
One Jacob Way
Reading, MA 01867
U.S.A.

Third Printing, June 1999