Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re*: Re: lvalue required as increment operand -- why does the Standard requires this for fundamental types only?

Reply
Thread Tools

Re*: Re: lvalue required as increment operand -- why does the Standard requires this for fundamental types only?

 
 
Leo \Equinox\ Gaspard
Guest
Posts: n/a
 
      07-02-2011
As you are going to make this algorithm templatized (otherwise you wouldn't say that you want it to work with any type), you could use is_fundamental, from C++11 or Boost, with enable_if.

And, as a rationale, I do only see side effects.
 
Reply With Quote
 
 
 
 
Alf P. Steinbach /Usenet
Guest
Posts: n/a
 
      07-03-2011
* Leo "Equinox" Gaspard, on 03.07.2011 00:41:
> ...


Please don't use Google Groups' new interrface.

It screws up threading in ordinary newsreaders, by omitting the references header.

It's just more Usenet sabotage from Google (counting the spam, the signature
delimiter sabotage, the blurring of Usenet versus GG) -- just Say No(TM).


Cheers,

- Alf

--
blog at <url: http://alfps.wordpress.com>
 
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
lvalue required as increment operand -- why does the Standard requiresthis for fundamental types only? Pavel C++ 13 07-05-2011 12:53 AM
Re*: Re: Re*: Re: lvalue required as increment operand -- why does the Standard requires this for fundamental types only? Leo \Equinox\ Gaspard C++ 2 07-03-2011 12:15 PM
lvalue required as increment operand Ben Pfaff C Programming 9 12-25-2007 09:06 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
why prefix increment is faster than postfix increment? jrefactors@hotmail.com C Programming 104 10-27-2005 11:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57