Talk:cpp/string/wide/wmemset

Hi, I'm new here and I'm also new to editing and correcting bugs on wikis, so please forgive me if I messed anything up, as I found a bug in this page and just corrected it, although I only created my wiki account here after I made the correction. Anyways, the example code didn't compile and was also using the wrong command as an example, using "memset" instead of "wmemset" even though the whole page is meant for "wmemset". What I did was tweak the example code just a tad so that it compiles with the expected preview result, at least with the online compiler. Please note that although the revised code also compiles fine with my own toolchain on my own machine locally (I use MinGW-w64, 64-bits, one of the off-shoots found on SourceForge), I don't have other compilers set up or installed, so I can't confirm if my revision works with MSVC or other compilers, but at least the web compiler you guys have on the site seems to run the revised version now, unlike the previous version which did not compile without error. I hope this is of help to anyone using the site and learning C/C++, and again also hope I didn't mess anything up with the edit. Sincerely, "Destructavator Dave", Professional Guitar Luthier and hobby programmer, lead developer for ScorchCrafter Audio FX (on SourceForge), Spare-time video game coder for UFO:AI and a few other projects, Musician, Graphic Artist and 3D Modeller, C/C++ and GLSL coder, and contriver of numerous excessive personal titles for introductory purposes, and some other stuff that most of you likely wouldn't care about... Destructavator (talk) 21:54, 14 November 2014 (PST)


 * Thanks a lot! It seems like this page was copied from the page for memset without careful adjustment. Now it looks much better. --D41D8CD98F (talk) 01:53, 15 November 2014 (PST)
 * Yes, I also guessed, from the way it looked before, that it probably was indeed copied from the page for memset, as you said. Also, I can't take all the credit for the fix and the current version, as it seems I did indeed mess up with my changes.  Fortunately, another user noticed it and corrected it with a better version shortly after my edit.  At least I brought attention to the page in the first place, so as of now (the current version, with everyone's edits) there is a good, working example with what I would say is proper information.  Destructavator (talk) 09:52, 15 November 2014 (PST)

Hmmm... Sorry to post again so soon, but does anyone think that there should be something describing the "dest" array that the function alters? Right now it doesn't have any text beside it explaining that. Or does it seem obvious enough that the page doesn't need to be so verbose? Destructavator (talk) 09:59, 15 November 2014 (PST)


 * What additional explanation do you think would be useful? --Nate (talk) 16:36, 17 November 2014 (PST)