Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Is this valid c++?

Reply
Thread Tools

Is this valid c++?

 
 
Daryle Walker
Guest
Posts: n/a
 
      11-13-2011
On Nov 9, 10:29*am, dec4106 <dec4...@gmail.com> wrote:
> Earlier today I came across a code example that looked something like
> this:
>
> template <typename T, unsigned S>
> class MyClass
> {
> public:
> * * MyClass() = default;
> * * ...
>
> "default" is not defined anywhere in the example. *I've never seen an
> expression like this before and don't understand how it could work,
> and haven't been able to make it work. *Is this a C++11 thing?


I think this is from one of my posts.

Ironically, considering the rest of this thread, I don't even have a C+
+11 compiler (or a system ready to use one). I'm learning C++11 from
web sites and Usenet posts.

I, nor anyone else, can define "default" in an example since it's a
keyword!

Daryle W.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not valid SSID name during setup using the wizard =?Utf-8?B?SE1WYWNhbmE=?= Wireless Networking 4 08-23-2005 05:38 PM
Enigmail - no valid OpenPGP data found Chuck Firefox 3 04-27-2005 09:20 PM
Enigmail - no valid OpenPGP data found Chuck Firefox 0 04-26-2005 06:41 PM
User Control - InvalidCastException: Specified cast is not valid Ajit ASP .Net 1 04-24-2004 09:28 PM
Valid file types Aschel Kritsos ASP .Net 1 11-14-2003 05:13 PM



Advertisments