- best way to remove std::vector member - 1 Update
- How to learn about God - 3 Updates
- This will work or not? - 12 Updates
- "Unicode" - 3 Updates
- Bug in the C++ 2011 specifications - 1 Update
- The big three - 2 Updates
- Announcement: Release of CC Mode 5.33 - 1 Update
- A funny race-condition based RNG... - 1 Update
- Onwards and upwards - 1 Update
Lynn McGuire <lynnmcguire5@gmail.com>: Sep 05 01:56PM -0500 What is the best way to loop and remove a member of a std::vector instance variable ? The current code is: std::vector <DataGroup *> owners; is an class instance variable. int DataItem::removeOwner (DataGroup * ownerDG) { int num = owners.size (); for (int i = 0; i < num; i++) { if (owners [i] == ownerDG) { owners.erase (owners.begin () + i); --num; --i; } } } Sincerely, Lynn McGuire |
bighe.trole@gmail.com: Sep 04 07:01PM -0700 On Sunday, September 4, 2016 at 2:48:36 PM UTC, Rick C. Hodgin wrote: > and it stood fast. > He has glorious plans for your life, and for all of mankind. He extends > the invitation to all. Be one who receives. Live on. Funny; I read this and went to one of these churches and look at a bible in the pew. And you know what? there wasn't a SINGLE line of C++ code in it! Not a one! Why would I go to one of these places to learn about programming?! |
Real Troll <real.troll@trolls.com>: Sep 04 10:15PM -0400 On 04/09/2016 15:48, Rick C. Hodgin wrote: > Go to church today. Have you been to a porn site where nuns are giving lessons in how to bonk them with a big hard cock? |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 05 11:52AM -0700 On Sunday, September 4, 2016 at 10:47:24 AM UTC-4, Rick C. Hodgin wrote: > and it stood fast. > He has glorious plans for your life, and for all of mankind. He extends > the invitation to all. Be one who receives. Live on. Why is it only Jesus? Why not Mohamed or Buddha or one of the Hindu gods? Why is it only Jesus who is the "right God"? Every religion except Biblical Christianity teaches that you can be made right before God by performing certain rituals, or in some way self- attaining the approach to God. Only Biblical Christianity teaches you that no matter how you live your life, you'll never be good enough because there is already a real taint upon you that cannot be removed by good deeds. That taint that exists is sin. And it is only Jesus Christ who can take that sin away, restoring you to eternal life, and giving you the plan and purpose God originally had for you before sin entered in and destroyed everything. ----- How does Jesus take away sin? Jesus is God. He came to the Earth as a man, born as a man, as a baby, at the appropriate time, to then be subjected to being under our laws. He was born of a virgin so that He did not carry the sin of man upon Him when He was born. The Holy Spirit (the power of God) caused a miracle within the womb of the virgin. There, His body was created so that He would have a presence in this world. In that way, His Father is God Himself, making Him God on Earth. He was born, and grew up in the normal way, and was given the Holy Spirit without measure, meaning He was fully God and fully man. He lived until about 30 years old where He began His ministry on Earth, teaching the people here about His New Testament, about sin, about forgiveness of sin, about the false teachings of the enemy. His ministry lasted about three years, and then He went to the cross to fulfill prophecy and save us. He was never guilty of violating any of the laws God gave man, so that He was completely without sin. You will note that some people commit more sins than other people, but that all people die. And whether it be Hitler who died, or the little old lady down the street who is as nice as she can be to everybody, with never a negative thing to say, always lending a helping hand and giving out good advice, etc., the same punishment is required by God for sin: eternal death in Hell, separate from God, and separate from the rest of God's creation so that there will never be another influence upon God's creation by that sinful entity. This is the requirement of sin because sin is falseness, imperfection, and it stands against the perfect creation of God like a cancer, eating away at what was laid down perfectly, until the content there has been twisted and turned away from its original intent, being now used for the hideous form that sin manifests as. Sin is a literal cancer. And like cancer, you don't just live with it. You must excise it completely. You must get in there and cut it out and remove all of it so that it has no more influence upon the healthy body, so that it will not do any more damage. That is why God created Hell. He created Hell to take sin away from the rest of His creation. ----- Why do people still go to Hell if Jesus came to save us? We each have a choice to make. From within, we will either seek to follow the truth, or we will not, and in that way we will either choose to follow after Jesus Christ because He is truth, or we will turn away from Him and follow after any other manner, all of which are falseness. For all who do pursue truth, they will come to Him, ask forgiveness, and He will forgive their sin and be saved. This means He will transfer the sin debt they've accumulated in their life, past, present, and future, to His own account, so that when He died at the cross your sin died with Him, rather than you, setting you free from the sin debt ... as though you never ever sinned even one time. This is God's gift to all who come to Him: 1) Jesus was manifest to undo the works of the devil (sin). 2) He did everything required of God to be able to take sin away. 3) He takes our sin away, and He pays the price of our disobedience in Hell, so that we never have to. There is no greater gift. And it's free for the receiving. Jesus wants to forgive you of all of your sin, so that you can be with Him where He is, forever, in the paradise of God, in a new body that doesn't get tired, never gets old, will never hunger or thirst, and will be beautiful like that of the angels ... forever. ----- The enemy of God is at work in this world trying to distract you from coming to Jesus Christ. He is trying to soil His name, and taint that which He is offering with false attributes so that people will look at the false attributes and say, "Nope, not for me," rather than looking at the REAL Jesus Christ and learning that He is everything you could've ever hoped for, and more. Jesus extends His arms out to receive you. Receive Him, so that He can forgive your sin, and give you eternal life. He calls out to you because He loves you, and He wants to reveal all of His creation and glory to you, so that you can know Him as He truly is, and not as the world teaches, and not as our limited abilities here upon this fallen-in-sin Earth can receive, but rightly, fully, in eternity, as one of His own (made in His own image and likeness ... we are literally made in God's image and will be like Him when we see Him as He is). ----- Pursue this knowledge for yourself. Go to a local Christian church. Pick up the Christian Bible and begin searching for yourself, but always begin by asking God to reveal Himself to you, and to lead you rightly into the full truth. He will do this for all who are truly seeking the truth. There is an enemy voice who will come and try to knock you off of that pursuit. But if you ask God for help, and you are one who is truly in pursuit of truth, then because God is greater than that enemy, He will lead you fully into the truth, so that the enemy will not prevent you from coming to a full and saving knowledge of Jesus Christ. God Himself will act on your behalf fighting the powerful enemy Satan (and all his demon imps), so that you (who are most precious to Him) can come to Him, and be saved by His Son, and be with Him forever. Your value is worth much more than gold. ----- God Himself will lead you into all truth ... if you ask Him. I pray you do. I would like for you to live on in eternity, in the paradise of God, in a perfect body, forever. Best regards, Rick C. Hodgin |
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Sep 05 12:27AM +0100 On 04/09/2016 23:56, Jerry Stuckle wrote: > Ah, once again your obsession shows its ugly face. You are just showing > how bad it is - having to reply to every post I make, whether it applies > to you or not. Whether it applies to me or not? Try scrolling up you demented fuckwit. > Do yourself and everyone else a favor. Get help, and quick. Take your own advice. /Flibble |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 04 05:17PM -0700 Jerry Stuckle wrote: > Real Christians know when religious discussions are > appropriate and when they are not. When a person is saved, they are changed by the born again nature. They are transformed from within to become servants of Jesus Christ. We remember that He came to save the lost, that He went into the places of the world where the nonbelievers were, to teach them about sin, about salvation, and about God's plan for their lives. We remember that the enemy spirit is at work 24/7 to squelch the message of the need for salvation, the need for repentance, the need to teach others the same. We remember the Lord's command to love one another, and His Great Commission to go out into all the world and teach and make disciples. Jesus came to the Earth to save men's souls. His work continues in us. Our lives are not our own. We were bought at a price, and there is a calling upon us unto Him which precedes everything we do in our lives. He is to always be our primary going concern, with all other things coming after. I'm sorry you've had difficulty with Mr. Flibble. But remember the Lord sometimes puts stumbling blocks ahead of us to knock us to our knees, so that we will press in more to meet the needs of the circumstance. You might begin by showing Mr. Flibble some proper respect by referring to him by the correct name, and look up the lyrics to the song, "Follow Me" by Ira Stanphill to place your efforts, your successes, your failures, and your tasks, into proper perspective. And remember who it was who bought you, Jerry ... and in what state He bought you, and in what condition He intends for you. It is important to remember who He is, what He's done, and what His purpose was for coming to the Earth, so that our purpose will be continually considered within the proper light. Best regards, Rick C. Hodgin |
bighe.trole@gmail.com: Sep 04 06:55PM -0700 On Sunday, September 4, 2016 at 9:25:01 PM UTC, Mr Flibble wrote: > > I would suggest you consider that thought. > So you believe in the existence a magical sky daddy too do you Stuckle? > That explains quite a lot. Is it surprising that he would be a fan of a religion that lets you beat your wife? DISTRICT COURT OF MARYLAND Case Information Court System: DISTRICT COURT FOR MONTGOMERY COUNTY - CIVIL SYSTEM Case Number: 0602SP019022003Claim Type: DOMESTIC VIOLENCE District/Location Codes: 06 / 02Filing Date:07/08/2003Case Status:CLOSED Complaint, Judgment, and Related Persons Information (Each Complaint, Hearing, Judgment is listed separately, along with each Related Person) Complaint Information Complaint No: 001(STUCKLE, ELIZABETH M) Vs:(STUCKLE, JERRY D ) Type: REGULAR CLAIM Status Date: 07/09/2003Filing Date:07/08/2003Amount$0.00Last Activity Date:07/14/2003 Related Person Information Name: STUCKLE, JERRY D Connection to Complaint: DEFENDANT Address: 9920 BRIXTON LANE City: BETHESDAState:MDZip Code:20817-0000 Name: STUCKLE, ELIZABETH M Connection to Complaint: PLAINTIFF |
Jerry Stuckle <jstucklex@attglobal.net>: Sep 04 10:53PM -0400 On 9/4/2016 7:27 PM, Mr Flibble wrote: >> how bad it is - having to reply to every post I make, whether it applies >> to you or not. > Whether it applies to me or not? Try scrolling up you demented fuckwit. Yes, it applies to you. You are the one who can't resist replying to anything I say - even though it has nothing to do with you. >> Do yourself and everyone else a favor. Get help, and quick. > Take your own advice. > /Flibble Yes, you really need help. But those who need the help most are the ones who resist it the most. Please - for your own sake, get help soon. Your obsession is not at all healthy. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ================== |
Jerry Stuckle <jstucklex@attglobal.net>: Sep 04 10:55PM -0400 > City: BETHESDAState:MDZip Code:20817-0000 > Name: STUCKLE, ELIZABETH M > Connection to Complaint: PLAINTIFF Try again. Let's see you find a court record for that. You can't, because it's entirely made up. We are still happily married. Ah, but you couldn't find a link because one doesn't exist! ROFLMAO! -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ================== |
Jerry Stuckle <jstucklex@attglobal.net>: Sep 04 10:57PM -0400 On 9/4/2016 8:17 PM, Rick C. Hodgin wrote: > continually considered within the proper light. > Best regards, > Rick C. Hodgin I'm not going to debate religion with you, Rick. But you need to remember who HE is. But He is not the one you worship. Satan is very insidious, and he has you in his clutches. Real Christians know where discussion on religion is appropriate and where it is not. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ================== |
"Öö Tiib" <ootiib@hot.ee>: Sep 05 02:21AM -0700 On Wednesday, 31 August 2016 15:59:32 UTC+3, Melzzzzz wrote: > }; > I am not sure if this will work, so if someone has clear explanation > why it will work (or not) , I would be grateful. If to leave nitpicks that the code posted does not compile and if to add missing include then it won't run aside then we have odd member function. The member function looks like deliberate sabotage that uses black magic of undefined behaviors to do something simple like: bool check_it() { return a>0 || b>0 || c>0; } I may be wrong of course and it wasn't what it was meant to do. What was its purpose? |
Juha Nieminen <nospam@thanks.invalid>: Sep 05 11:34AM > return false; > } > }; Rather than mess with implementation-defined and undefined behavior trickery, just redesign your struct better, in a manner that allows you to do what you want (ie. iterate through the member variables in a loop) without compromising code quality and standard conforming. For example: struct Problem { std::uint32_t values[4]; std::uint32_t a() const { return values[0]; } void a(std::uint32_t v) { values[0] = v; } // and same for b(), c() and d(). }; Now you can safely iterate through the values in a loop. --- news://freenews.netfront.net/ - complaints: news@netfront.net --- |
Melzzzzz <mel@zzzzz.com>: Sep 05 01:36PM +0200 On Mon, 5 Sep 2016 11:34:05 +0000 (UTC) > }; > Now you can safely iterate through the values in a loop. > --- news://freenews.netfront.net/ - complaints: news@netfront.net --- What about uint64_t ? It's a big struct I just made it minimal to show problem. |
Melzzzzz <mel@zzzzz.com>: Sep 05 01:38PM +0200 On Mon, 5 Sep 2016 02:21:01 -0700 (PDT) > } > I may be wrong of course and it wasn't what it was meant to do. > What was its purpose? I ended up writing it like this. |
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Sep 05 06:18PM +0100 On 05/09/2016 03:53, Jerry Stuckle wrote: > Yes, you really need help. But those who need the help most are the > ones who resist it the most. Please - for your own sake, get help soon. > Your obsession is not at all healthy. You've been trolling the same way for at least the past decade (Google it) so I'm afraid it just doesn't wash mate. /Flibble |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Sep 05 11:20AM -0700 On Sunday, September 4, 2016 at 10:57:35 PM UTC-4, Jerry Stuckle wrote: > I'm not going to debate religion with you, Rick. That is wise, Jerry. However, it's of no consequence because I do not debate. I teach. It is up to each person to receive Him ... or not. When I have taught, and explained things as clearly as I'm able, I am then free of any unfinished business before God (in that circumstance) and will stand without guilt or shame before Him, having opened my mouth to speak when He called me to do so. There is no inappropriate place to teach people about Jesus Christ, Jerry. It is only the enemy who teaches that message. Best regards, Rick C. Hodgin |
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Sep 05 12:53PM +0200 On 04.09.2016 13:37, Paavo Helde wrote: >> locale. >> In Windows it can't. > No, you can perfectly well use UTF-8 based strings in Windows, It can't be part of the C locale. That's like, period. > I have done this for 15 years. No you haven't. You may have used UTF-8 in your programs in Windows, as you can on any platform, for 15 years. That's something else. It's not practical when quality is important, but that's a very different discussion. You have not used UTF-8 C locales in Windows. > functions for easy conversion to-from UTF-16 at the application border > (or to-from any other encoding when calling a library which expects > another encoding). Well, I'm sorry to say this, but that code probably have some severe limitations on filenames etc. Generally, code originating in the *nix world, or based on such software, fares badly in Windows. For example, filenames and paths for Open CV library. Not to mention for the Code Blocks IDE. I wouldn't mind the limitation to pure ASCII so much if they just could add support for spaces, for Pete's sake. It's like something from the dark ages. Or before. Cheers, - Alf |
Paavo Helde <myfirstname@osa.pri.ee>: Sep 05 03:30PM +0300 On 5.09.2016 13:53, Alf P. Steinbach wrote: > platform, for 15 years. That's something else. It's not practical when > quality is important, but that's a very different discussion. > You have not used UTF-8 C locales in Windows. I have not claimed that. And it would not work anyway because as I wrote everything is converted to UTF-16 at the app border by the app itself, so using a UTF-8 locale would be very wrong. All this locale stuff is pretty evil anyway (as every other hidden global state). Our code always uses either explicit "C" locale via functions like strtod_l() or enforces "C" locale otherwise. By using locale-dependent functions the functionality of the program would become unpredictable and very hard to maintain. The clear negative example is Excel where you can never know what punctuation you must enter in a formula because the syntax is heavily locale-dependent, and copy-pasting a piece of CSV most often does not work correctly. Using locales might be useful only in the immediate user interface, and even there it is often more misleading or irritating than useful (e.g. random pieces of local language in long-formatted dates, in an otherwise correct English text). If you call that 'quality', then I humbly beg to differ. Fortunately enough, most of my work is not related to UI and any locale-sensitivity is considered as a bug, not a feature. >> another encoding). > Well, I'm sorry to say this, but that code probably have some severe > limitations on filenames etc. Care to bring some examples? As far as I know, there is 1:1 translation from UTF-8 to UTF-16 used by Windows SDK file functions. It's true that not all Unix world filenames like those containing colons or backslashes are supported by Windows, but this has nothing to do with UTF-8. > I wouldn't mind the limitation to pure ASCII so much if they just could > add support for spaces, for Pete's sake. It's like something from the > dark ages. Or before. Sorry, here you lost me. Windows has supported spaces in filenames for 20 years already. Probably you are talking about something else. Cheers Paavo |
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Sep 05 04:13PM +0200 On 05.09.2016 14:30, Paavo Helde wrote: >> quality is important, but that's a very different discussion. >> You have not used UTF-8 C locales in Windows. > I have not claimed that. Well, in context your "no" indicated a claim in that direction. Except for context the "no" could mean anything, really. It seems now that you meant a much wider context than just the preceding paragraph or two, but that was not obvious to me, sorry. > functions like strtod_l() or enforces "C" locale otherwise. By using > locale-dependent functions the functionality of the program would become > unpredictable and very hard to maintain. Oh, mostly I agree with that sentiment. Still, • A host of C standard library functions are locale dependent. • Even C++ wide streams are locale dependent. In particular they don't work in *nix-land unless you set the locale, e.g. `setlocale( LC_ALL, "" )` in `main`. That's because they translate to/from external. • Even string comparison, uppercasing and lowercasing in Unicode is to some degree locale dependent. However, I've always ignored that subtlety. I think, to the degree it's a problem one should just leave it to the users to deal properly with it, e.g. by avoiding troublesome ¹Turkish or whatever characters. > Excel where you can never know what punctuation you must enter in a > formula because the syntax is heavily locale-dependent, and copy-pasting > a piece of CSV most often does not work correctly. Yeah, agree, the Excel team/managers were insane. They even at some point tried to provide national language versions of the scripting language, making not just CSV files but also scripts, effectively non-portable. > random pieces of local language in long-formatted dates, in an otherwise > correct English text). If you call that 'quality', then I humbly beg to > differ. By [lack of] "quality" I was referring to e.g. the common restriction to plain ASCII for *nix based code such as Open CV, lack of reliable support for spaces in paths such as in Code Blocks, lack of support for the backspace key such as in an installer for Qt at one point (I didn't know whether to laugh or cry), and so on, and on, and forth. >> Well, I'm sorry to say this, but that code probably have some severe >> limitations on filenames etc. > Care to bring some examples? std::ofstream f( utf8_file_path ); // OK in *nix, ungood in Windows. > from UTF-8 to UTF-16 used by Windows SDK file functions. It's true that > not all Unix world filenames like those containing colons or backslashes > are supported by Windows, but this has nothing to do with UTF-8. Windows uses the colon as a stream name separator. <example> [c:\my\forums\clc++\036] > echo bah >knurre.txt:comment [c:\my\forums\clc++\036] > dir | find "knurre.txt" 05.09.2016 16:07 0 knurre.txt [c:\my\forums\clc++\036] > more <knurre.txt:comment bah [c:\my\forums\clc++\036] > _ </example> General *nix filenames /can/ be handled in an app, but the easiest then is to instead is to use whatever they now have instead of Interix subsystem for Unix. >> dark ages. Or before. > Sorry, here you lost me. Windows has supported spaces in filenames for > 20 years already. Probably you are talking about something else. Context. I'm talking about, quote from immediately preceding paragraph, "code originating in the *nix world, or based on such software, fares badly in Windows. For example, filenames and paths for Open CV library. Not to mention for the Code Blocks IDE." E.g. last I tried it, Code Blocks still couldn't handle spaces in paths in general. I think using UTF-8 encoding internally in a program in Windows can be OK for some special application domains, when that reduces porting work. Presumably the code you've been working on has been such. Cheers!, - Alf Notes: ¹ See e.g. <url: http://www.i18nguy.com/unicode/turkish-i18n.html> |
Luca Risolia <luca.risolia@linux-projects.org>: Sep 05 03:58PM +0200 On 13/08/2016 00:19, jacobnavia wrote: >> f(S().n); >> } > Look I do not know c++ but anyway... Fortunately, no sane C++ developer would ever need to write such a crappy piece of code. |
Juha Nieminen <nospam@thanks.invalid>: Sep 05 06:22AM > The checks about if something is "trivial" or "standard layout" seem > far more complicated. Also, if it was design error then why it > hasn't been repaired? There are valid situations where you may want to define only one of them without any need to define the others (ie. not defining the others will not break anything). On that subject, one feature I would like to see is the ability to call the compiler-generated default implementation from your own. (This could be especially useful in copy constructors and assignment operators.) --- news://freenews.netfront.net/ - complaints: news@netfront.net --- |
"Öö Tiib" <ootiib@hot.ee>: Sep 05 01:29AM -0700 On Monday, 5 September 2016 09:23:00 UTC+3, Juha Nieminen wrote: > There are valid situations where you may want to define only one of them > without any need to define the others (ie. not defining the others will > not break anything). In one of such situations we would need to explicitly default the others if we wanted those. It seems rather slight inconvenience. Far better than current situation where we have the likely wrong implicit defaults unless we explicitly delete those. > On that subject, one feature I would like to see is the ability to call > the compiler-generated default implementation from your own. (This could > be especially useful in copy constructors and assignment operators.) I would like automatic run-time detection of object slicing when there are virtual functions. It feels quite cheap to achieve comparable with virtual function call instead of non-virtual. Unfortunately there's still some months left until Christmas. ;) |
Juha Nieminen <nospam@thanks.invalid>: Sep 05 06:16AM > URL listed below. More information, including links to download the > source, are available on the CC Mode web page: > <http://cc-mode.sourceforge.net/> Will cc-mode ever support Objective-C++? --- news://freenews.netfront.net/ - complaints: news@netfront.net --- |
"Chris M. Thomasson" <invalid@invalid.invalid>: Sep 04 10:36PM -0700 On 9/4/2016 1:53 PM, Chris M. Thomasson wrote: > Humm... It would be really neat to take an educated guess at what atomic > primitive might of caused a race condition based on modeling its output > as a stream of bits. Might be fun, or a wild goose chase! Humm... The funny thing is that compare and swap might do a little better even in fubar impl... lol. At least it will try to compare before it destroys data-structure integrity? ;^) I need to try this out. |
woodbrian77@gmail.com: Sep 04 09:20AM -0700 On Sunday, September 4, 2016 at 3:10:19 AM UTC-5, gwowen wrote: > > systems is that they require an extra component in the architecture, > > the message transfer agent (message broker)." > > https://en.wikipedia.org/wiki/Message-oriented_middleware I just found this page https://en.wikipedia.org/wiki/Message_oriented_middleware There's an underscore between message and oriented rather than a dash. That just adds to the mess. That page needs some help, too. > > I don't know who writes that junk, but that's not true of > > the C++ Middleware Writer. > Do you know what "many" means? Google Protocol Buffers is another example and there are others. Some approaches don't suffer from the "primary disadvantage." Why not focus on them? > > "Let another man praise you, and not your own mouth; > > A stranger, and not your own lips." Proverbs 27:2 > Don't hold your breath. "People go out of their way to help you succeed. You may never know why it happens. That's G-d, working behind the scenes, bringing it all together." Joel Olsteen -- Brian Ebenezer Enterprises http://webEbenezer.net |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment