- the meaning of ^? - 9 Updates
- A small quiz (1) - 4 Updates
Doug Mika <dougmmika@gmail.com>: Sep 08 07:19AM -0700 Hi to all. I know that ^ is the bitwise XOR operator, but what does it mean in the following: String^ strSource = "changed"; //what is this ^ doing here? Thanks PS. It's taken from: https://msdn.microsoft.com/en-us/library/system.string.copyto(v=vs.110).aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-2 |
Daniel <danielaparker@gmail.com>: Sep 08 07:28AM -0700 On Tuesday, September 8, 2015 at 10:19:47 AM UTC-4, Doug Mika wrote: > Hi to all. > what does [^] it mean in the following: > String^ strSource = "changed"; //what is this ^ doing here? That's a Microsoft specific Common Language Runtime specifier meaning the declared object is to be automatically garbage collected. This is not part of standard C++. You should find a microsoft specific newsgroup to find out more. Daniel |
Bo Persson <bop@gmb.dk>: Sep 08 04:56PM +0200 On 2015-09-08 16:19, Doug Mika wrote: > PS. > It's taken from: > https://msdn.microsoft.com/en-us/library/system.string.copyto(v=vs.110).aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-2 It's a totally different language, confusingly called C++/CLI, with its very own standard http://www.ecma-international.org/publications/standards/Ecma-372.htm Bo Persson |
Doug Mika <dougmmika@gmail.com>: Sep 08 08:50AM -0700 On Tuesday, September 8, 2015 at 9:56:27 AM UTC-5, Bo Persson wrote: > very own standard > http://www.ecma-international.org/publications/standards/Ecma-372.htm > Bo Persson I know this isn't really the place, but I just spent the last 30 minutes looking for a visual c++ newsgroup, and I didn't find a thing! Does anyone know the precise address of the microsoft visual c++ newsgroup? (ie comp.lang.c++) Thanks |
Daniel <danielaparker@gmail.com>: Sep 08 09:02AM -0700 On Tuesday, September 8, 2015 at 11:51:06 AM UTC-4, Doug Mika wrote: > I know this isn't really the place, but I just spent the last 30 minutes looking for a visual c++ newsgroup, and I didn't find a thing! Does anyone know the precise address of the microsoft visual c++ newsgroup? (ie comp.lang.c++) Try https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vcgeneral |
Cholo Lennon <chololennon@hotmail.com>: Sep 08 01:17PM -0300 On 09/08/2015 12:50 PM, Doug Mika wrote: >> Bo Persson > I know this isn't really the place, but I just spent the last 30 minutes looking for a visual c++ >newsgroup, and I didn't find a thing! Does anyone know the precise address of the microsoft >visualc++ newsgroup? (ie comp.lang.c++) > Thanks Microsoft has replaced its newsgroups (microsoft.public.*) with web based forums (Check Daniel's anwswer) The official Microsoft newsgroups for VC++ used to be (from time to time they have some minor activity): microsoft.public.vc.* (language, stl, mfc, atl, debugger, etc) microsoft.public.dotnet.languages.vc Regards -- Cholo Lennon Bs.As. ARG |
Bo Persson <bop@gmb.dk>: Sep 08 06:27PM +0200 On 2015-09-08 17:50, Doug Mika wrote: >> http://www.ecma-international.org/publications/standards/Ecma-372.htm >> Bo Persson > I know this isn't really the place, but I just spent the last 30 minutes looking for a visual c++ newsgroup, and I didn't find a thing! Does anyone know the precise address of the microsoft visual c++ newsgroup? (ie comp.lang.c++) Microsoft has decided that we don't want to use newsgroups anymore - old technology! So the have set up some modern online forums instead. Bo Persson |
Doug Mika <dougmmika@gmail.com>: Sep 08 11:15AM -0700 On Tuesday, September 8, 2015 at 11:27:47 AM UTC-5, Bo Persson wrote: > Microsoft has decided that we don't want to use newsgroups anymore - old > technology! So the have set up some modern online forums instead. > Bo Persson Thanks to all...I remember I once tried to find a VC++ newsgroup before, and I had no luck whatsoever, alhtough the chinese have one!. |
Christopher Pisz <nospam@notanaddress.com>: Sep 08 01:27PM -0500 On 9/8/2015 11:27 AM, Bo Persson wrote: > Bo Persson Yea, their forums are a complete terd too. Good luck finding one where any specific question is on topic and will receive a response by anyone other than a moderator whom will mark his own post as the answer even though your question never got addressed. -- I have chosen to troll filter/ignore all subthreads containing the words: "Rick C. Hodgins", "Flibble", and "Islam" So, I won't be able to see or respond to any such messages --- |
rsteele <steeledynamics@gmail.com>: Sep 07 06:39PM -0700 I agree with Paavo. Use const auto& for a range-based for-loop. |
rsteele <steeledynamics@gmail.com>: Sep 07 06:42PM -0700 I agree with Paavo. Use const auto& p within a range-based for-loop. |
auxo <auxo@tfwno.gf>: Sep 08 02:49PM +0200 Note: talking fully off the top of my head -- untested, not even sure if it's legal, but I'm taking a shot. > change in the source code: > for( const ::std::pair< ::std::string, int > & pair : map ) > /* assume a statement here that might use the pair */ Would `const ::std::pair<const ::std::string&, int>&` make sense? I.e. making the element inside the pair a constant reference too (`int` doesn't matter in this case because it's a builtin type) because why make a copy of the string if all you're doing is looking at the pair. Something like that? Assuming the above is correct, would `const ::std::pair<::std::string&, int>&` make sense/be valid (i.e. a normal reference to the string inside the pair but a constant reference to the whole pair)? I assume it wouldn't? auxo |
auxo <auxo@tfwno.gf>: Sep 08 02:50PM +0200 Note: talking fully off the top of my head -- untested, not even sure if it's legal, but I'm taking a shot. > change in the source code: > for( const ::std::pair< ::std::string, int > & pair : map ) > /* assume a statement here that might use the pair */ Would `const ::std::pair<const ::std::string&, int>&` make sense? I.e. making the element inside the pair a constant reference too (`int` doesn't matter in this case because it's a builtin type) because why make a copy of the string if all you're doing is looking at the pair. Something like that? Assuming the above is correct, would `const ::std::pair<::std::string&, int>&` make sense/be valid (i.e. a normal reference to the string inside the pair but a constant reference to the whole pair)? I assume it wouldn't? auxo |
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