This is a discussion on Conversion constructor within the C and C++ Programming forums, part of the Software Development category; Conversion constructor A constructor that accepts one argument of a different type. The compiler uses this idiom as one way ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Conversion constructor A constructor that accepts one argument of a different type. The compiler uses this idiom as one way to infer conversion rules for your class. A constructor with more than one argument and with default argument values can be interpreted by the compiler as a conversion constructor when the compiler is looking for an object of your constructor's type and sees an object of the type of the constructor's first argument.
__________________ J.Vijayanand |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| conversion from ogg to mp3 | JSureshkumar | Operating Systems | 33 | 04-10-2008 09:44 PM |
| Conversion error | Kirubhananth | ASP and ASP.NET Programming | 4 | 03-12-2008 10:03 PM |
| Copy constructor and an overloaded assignment operator | vijayanand | C and C++ Programming | 0 | 09-21-2007 03:37 AM |
| Embedded Currency Conversion | Alkazar | HTML, CSS and Javascript Coding Techniques | 1 | 08-27-2007 07:57 AM |
| How to do a type conversion in VC++ .NET? | bluesky | C and C++ Programming | 2 | 08-10-2007 05:38 AM |