- Onwards and upwards - 7 Updates
- Merry Christmas (reprise) - 2 Updates
- Merry CHRISTmas! - 7 Updates
- Refuting the {Linz, Sipser, Kozen} HP Proofs [ double sqrt(X) ] - 1 Update
Brian Wood <woodbrian77@gmail.com>: Dec 27 07:38AM -0800 On Thursday, December 17, 2020 at 9:28:17 AM UTC-6, Brian Wood wrote: > > fine, and IMHO clearer than lambdas. > I was wondering if they would be a clearer or shorter way to do > it, but agree they aren't in this case. Thanks for posting all of that. #include <iostream> #include<vector> template<template<class>class C, class T> void nop (C<T>& c){ ::std::cout << "size is " << c.size(); } int main() { ::std::vector<int> v {1,4}; nop(v); } That compiles on FreeBSD using g++10, but MSVC 19.16 and 19.28 report an error: C2784: 'void nop(C<T> &)': could not deduce template argument for 'C<T> &' from 'std::vector<int,std::allocator<int>>' If I add a '...' like this: template<template<class...>class C, class T> MSVC accepts the code. Is one of the compilers wrong? Thanks in advance. Brian Ebenezer Enterprises https://github.com/Ebenezer-group/onwards |
David Brown <david.brown@hesbynett.no>: Dec 27 05:22PM +0100 On 27/12/2020 16:38, Brian Wood wrote: <snip> Start a new thread for a new topic here. You will get on far better. |
"Öö Tiib" <ootiib@hot.ee>: Dec 27 10:50AM -0800 > If I add a '...' like this: > template<template<class...>class C, class T> > MSVC accepts the code. Is one of the compilers wrong? MSVC is apparently working by rules up to C++17. Either you did not toggle it into C++17 mode or it is just lagging behind in conformance. I dislike C++17 for number of reasons. None of those trash language changes were needed for library changes added ... so I can't blame Microsoft there. |
Brian Wood <woodbrian77@gmail.com>: Dec 27 11:32AM -0800 On Sunday, December 27, 2020 > I dislike C++17 for number of reasons. None of those trash language > changes were needed for library changes added ... so I can't blame > Microsoft there. I was on Compiler Explorer and used std=c++2a at first, but MSVC said it was ignoring that so I changed it to std:c++latest. I have no idea what that boils down to, but it accepted that flag. |
"Öö Tiib" <ootiib@hot.ee>: Dec 27 01:22PM -0800 > I was on Compiler Explorer and used std=c++2a at first, but > MSVC said it was ignoring that so I changed it to std:c++latest. > I have no idea what that boils down to, but it accepted that flag. Maybe I misunderstand the issue. Whatever it is ... MSVC seems to tell in the diagnostic that you posted that it can not match the things as IMHO it should. To find out maybe try to compile example from reference: <https://en.cppreference.com/w/cpp/language/template_parameters> template<class T> class A { /* ... */ }; template<class T, class U = T> class B { /* ... */ }; template <class ...Types> class C { /* ... */ }; template<template<class> class P> class X { /* ... */ }; X<A> xa; // OK X<B> xb; // OK in C++17 after CWG 150 // Error earlier: not an exact match X<C> xc; // OK in C++17 after CWG 150 // Error earlier: not an exact match |
Brian Wood <woodbrian77@gmail.com>: Dec 27 02:44PM -0800 On Sunday, December 27, 2020 at 3:22:55 PM UTC-6, Öö Tiib wrote: > // Error earlier: not an exact match > X<C> xc; // OK in C++17 after CWG 150 > // Error earlier: not an exact match I'm not sure either, but what you posted is a class template. What I posted is a function template. Brian Ebenezer Enterprises https://webEbenezer.net |
Bo Persson <bo@bo-persson.se>: Dec 28 12:01AM +0100 On 2020-12-27 at 22:22, Öö Tiib wrote: > // Error earlier: not an exact match > X<C> xc; // OK in C++17 after CWG 150 > // Error earlier: not an exact match And MSVC compiles this as C++17, but rejects it in C++14 mode. But not so for the original function example. |
Vir Campestris <vir.campestris@invalid.invalid>: Dec 27 08:34PM On 25/12/2020 16:04, Mr Flibble wrote: > Christmas is pronounced "Christmas" and not "Chrystmas" which is a clue > that this festive season is not just for Christians, in fact Christians > simply misappropriated (stole) the festival from pagans many centuries ago. ... and how exactly do you pronounce Christian? The story of the shepherds being on the hills on the mountains of Galilee does rather point to a warmer time of year. Enjoy your sausages! Andy |
Mr Flibble <flibble@i42.REMOVETHISBIT.co.uk>: Dec 27 09:11PM On 27/12/2020 20:34, Vir Campestris wrote: >> Hi! >> Christmas is pronounced "Christmas" and not "Chrystmas" which is a clue that this festive season is not just for Christians, in fact Christians simply misappropriated (stole) the festival from pagans many centuries ago. > ... and how exactly do you pronounce Christian? I pronounce "Christian" as "egregious cockwombling". /Flibble -- 😎 |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Dec 26 07:20PM -0500 >> Daniel, the enemy has you summarily rejecting the later revelations > Rick, you're thinking about the bible in the way that it used to be > understood, from the late biblical times through the middle ages. Daniel, you are very misguided. I'm sorry. I've told you the truth. It's all I have to offer you, except the warning: You are wrong about the things you raise your voice to teach about scripture and you are doing harm both to others and yourself. I advise you to stop. If you have something to teach, then reach into your vast knowledge and understanding and expound in a way that teaches people. So far you have not taught anything. You've offered a completely contrary opinion to traditional Biblical teaching that's still upheld today in the vast overwhelming majority of everything related to Christianity, and your opinion has been disproven by Bible verses which correct your mis-teachings. You do not have a new understanding. You have an enemy who is leading you falsely. It will cost you everything if you pursue it. -- Rick C. Hodgin |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Dec 26 07:28PM -0500 On 12/26/20 12:09 PM, Mr Flibble wrote: > Daniel said the Garden of Eden was NEVER described as SINLESS. Pay more > attention to what people actually write before replying, spammer. The fall of man was from sin, Leigh. Sin did exist in the world until Satan came down and tempted Eve, and Eve and Adam did eat from the tree of the knowledge of good and evil. I've reached out to you many times, Leigh. I've tried to teach you, correct you, guide you with the truth of scripture. I've pointed you to His words, not mine. I've pointed you to other pastors and teachers. I've posted videos. Even my own audio describing the spiritual battle. TL;DR is your reply, coupled profanity, vulgarity, and not even a decent respect for another fellow human being with whom you happen to disagree. You also pound these forums up and down with your incessant profanity and vulgarity and rudeness and hate and meanness and just every awful quality and trait found in a human being. And by your twisted and psychotic logic you think such an attack against people you've never even met, people with families, people who are parents, siblings, spouses, just general people on this Earth, is somehow acceptable. You are so blind, Leigh. So misguided. So lost. So unbelievably off the mark. There's nothing I can do to reach you, Leigh. Until you're willing to change you'll remain where you are on the path to Hell. If that's truly what you want, that's truly what you'll get. -- Rick C. Hodgin |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Dec 26 07:31PM -0500 On 12/26/20 7:28 PM, Rick C. Hodgin wrote: > The fall of man was from sin, Leigh. Sin did Should be "Sin didn't..." -- Rick C. Hodgin |
"daniel...@gmail.com" <danielaparker@gmail.com>: Dec 26 04:40PM -0800 On Saturday, December 26, 2020 at 7:20:41 PM UTC-5, Rick C. Hodgin wrote: > > understood, from the late biblical times through the middle ages. > You've offered a completely contrary opinion to > traditional Biblical teaching But totally in accord with modern biblical scholarship. That's the consequence of eating from the Tree of Knowing Everything. Be well, Daniel |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Dec 26 07:53PM -0500 >> traditional Biblical teaching > But totally in accord with modern biblical scholarship. That's the > consequence of eating from the Tree of Knowing Everything. There's another warning for you given in scripture. It's a warning given to Timothy by Paul. It speaks about the time we are in now: 2 Timothy 4:3-4 https://www.biblegateway.com/passage/?search=2+Timothy+4%3A3-4&version=KJV;NIV 3 For the time will come when they will not endure sound doctrine; but after their own lusts shall they heap to themselves teachers, having itching ears; 4 And they shall turn away their ears from the truth, and shall be turned unto fables. That is you, Daniel. I'm teaching you something here: There is a literal enemy evil spirit at work in this world. That spirit is (or rather those spirits are) able to enter in to your physical body, impact your mind, your reasoning, your thinking, your feelings, your emotions. It trains you over time. It injects your substance with everything it wants you to believe so that you will remain in your sin, so that it will 1) have a host / home to dwell in (since it can only come out in spirit form due to its body being locked up in chains by God awaiting the day of judgment) and 2) to keep you in sin so that you will perish in eternity after leaving this world, like its sorry self will. That evil spirit guidance is what's putting you on this path. It presents to each of us something that we'll follow. It hits us where we're weakest. It looks for our vulnerabilities, things we'll believe in, things we'll succumb to. If you'd like to be set free, ask God Almighty to show you the truth. If you are sincere in wanting to know the truth and seek the truth and to not be deceived by any false voice, then God Himself will know this, and He Himself will come to you and set you free from the falseness. Salvation comes to those who seek the truth. I sought the truth to disprove the Bible. I wanted to truly know what it said wholly, completely, so I could dismantle its teachings piece by piece because I was sure I was right in my atheism. But in my sincerely seeking the truth, God came to me and saved me before I even knew what happened. That was 16+ years ago, and He remains with me to this day. There is head-knowledge, and there is the new spirit birth. Head-knowledge is the path of death if it is only head-knowledge. But head-knowledge coupled to the new spirit birth is the path of salvation. Read John 3 and listen to Jesus' words about how you must be born again. -- Rick C. Hodgin |
Keith Thompson <Keith.S.Thompson+u@gmail.com>: Dec 27 01:15AM -0800 >> > Or that see things that aren't there :-) >> Daniel, [snip] > Rick, [snip] Daniel, should I ask you to stop feeding the troll, or should I just assume you're another one? If it's not about C++, it doesn't belong here. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */ |
Mr Flibble <flibble@i42.REMOVETHISBIT.co.uk>: Dec 27 03:13PM On 27/12/2020 00:28, Rick C. Hodgin wrote: > You are so blind, Leigh. So misguided. So lost. So unbelievably off the mark. And Satan invented fossils, yes? /Flibble -- 😎 |
olcott <NoOne@NoWhere.com>: Dec 26 07:50PM -0600 On 12/26/2020 6:40 PM, Ben Bacarisse wrote: > The requirement that some function always return a value is a common > one, but you can call it "jackass stupid" if you like. Your name for it > is neither here nor there. Then the standard C function: double sqrt(X) is <not> a function because it can be called in infinite recursion, thus preventing it from ever returning any value to its caller. double Infinite_Recursion(double X) { Infinite_Recursion( sqrt(X) ); } int main(int argc, char *argv[]) { double X = Infinite_Recursion(1.0); printf("%8.4f", X); } -- Copyright 2020 Pete Olcott "Great spirits have always encountered violent opposition from mediocre minds." Einstein |
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