@Borgleader It has a more macro-ized and less limited interface. Macro's for user defined functions to be run on the GPU. Read the first bits of the readme, it's all explained quite easily.
If I send an int pointer to this function (this int is not part of an array), considering that ++ postfix is prior to the dereference operator, is it defined to access this memory (without using it)?
@AndyProwl I'm not aware of any names in the standard library that could be deemed categorically one or the other, though some may exist. I'd have to look.
I'd post an SO question for it but I would almost certainly be downvoted to oblivion by the brainwashed "America only" police.
@LightnessRacesinOrbit Hm, good point. For some reason I thought I've seen some word containing "-ize" instead of "-ise" but it seems it was just an impression
If I send an int pointer to this pastebin.com/raw.php?i=bXDvNy6z function (this int is not part of an array), considering that ++ postfix is prior to the dereference operator, is it defined to access this memory (without using it)?
@AndyProwl No doubt they will go with "color" in order to appease bullying corporate vendors trying to assert their single-country will over the rest of the world. That is, the rest of the world that they're so far aware of lol
@Polikdir I already answered this question. Pay attention.
@Polikdir However you are at least asking it much better now.
@R.MartinhoFernandes Any clue why I would get the following compilation errors on windows (clang++ & MS' stdlib) but not on linux:
> error : no member named 'empty' in 'seq::detail::sequence_impl<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' E:\GitHub\ogonek\deps\taussig\include\taussig\primitives\empty.h++ error : no matching function for call to 'empty' E:\GitHub\ogonek\deps\taussig\include\taussig\primitives\pop_front.h++ error : no member named 'pop_front' in 'seq::detail::sequence_impl<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' E:\GitHub\ogonek\deps\taussig\include\taussig\primitives\pop_front.h++
@LightnessRacesinOrbit So is the code I have sent is defined? Because I try to access this memory without owning it? Or is it defined because I am not really using it?
@R.MartinhoFernandes No clue, I mean, I'm looking at the changes I made, and it's only some class <--> struct to silence warnings, () to ::value in template meta-magic, and using code_point = decltype(U'\xA8'); to get around MS' shoddy "implementation" of char_32t or wtv. So I doubt it's that. And it doesn't look like its a std lib issue =/
@Polikdir Dereferencing an invalid pointer is undefined. Since you return a reference to an int that does not exist, that is also undefined. Even though you don't read from or write to the underlying memory.
@Polikdir Why are you writing poor code like this in the first place? Simply don't do that.
class ConcreteValue : public Value { };
auto memory = operator new(size());
new (memory) ConcreteValue();
auto vtablePtr = &vtable.dtor1;
std::memcpy(memory, &vtablePtr, sizeof(void*));
return static_cast<Value*>(memory);
After a quick search in draft N4296 I could not find any example of a name in the C++ Standard Library for which two possible spellings exists (AE vs. BE).
While this may even be intentional, I can imagine that at some point, if a graphics library will be standardized (and there seems to be some...
@LightnessRacesinOrbit actually I'm quite sure I have, boost::string_ref can pass a nullptr to std::string on construction and the behavior seems to be defined
@R.MartinhoFernandes Actually nvm, I was previously using a VS solution to build this, but I ran it with ninja directly, and it only gave me an error when I reeached the ar command. So idk wtf is going on.
uninitialized_copy would seem to set a precedent for the US variant. (Although the "z" is technically correct, if abominable, in English). — Mike Seymour30 secs ago
@Mgetz There’s something not quite right with what you said. libstdc++ very pointedly throws upon nullptr construction, so it should be very noticeable.
This page: Which spelling standard in English? 'Oxford spelling' says that ISO uses the Oxford spelling:
'Oxford spelling' is used by the principal and most prestigious English dictionaries such as the Oxford English Dictionary, the Collins English Dictionary and the Cambridge dictionaries, a...
-1: the spec consistently uses behavior and not behaviour, so either that page is mistaken, or else it doesn't apply here for some reason. — ruakh1 min ago
@райтфолд Right, but I don't think that you can require the compiler to have the implementation-specific header to compile code that's compatible with that library.
if you have to emit implementation-specific code what's the point of it being a standard
// You should have received a copy of the GNU General Public License
// along with GCC; see the file COPYING. If not, write to
// the Free Software Foundation, 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
In the Netherlands you can send certain letters to the municipality and they are required to answer them. There's one guy who continuously sends such letters and it costs the municipality over a million bucks per year to answer all of them.
@райтфолд I wonder, why does a NL municipality work in "bucks"? :/ That seems incredibly inefficient. If they used the local currency they'd probably not spend as much.
@райтфолд Well, if the letters to the municipality are written on a small sheet of paper, and the replies come back on A4, it sounds like a good way of keeping warm in winter, (assuming you have a solid-fuel boiler).
When did I ever mention your name? My personal feelings about your question have nothing to do with you as a person. Seriously, if you're a brit, speak brit in your code. Done. — Robert Harvey ♦2 mins ago
> Just LEARN C, the mother, the father, the GOD of all modern languages.
> There is only one language you need to know. C (you can make that two with C++ if you like). If you know that (those), you can learn any other language in a matter of hours. People who struggle to learn C/C++ should do something else.
quick question without going into a big debate, is MFC "good" C++ ? The goal for me is to know win32 api better but the lack of util classes, even things like date etc in C and swaying me to MFC
@MartinJames I mean it's design and structure. Like .NET I believe is well thought of and designed. So reading .NET code or looking at their design gave me a better idea of how to design my code.