I've noticed that many questions tagged as alloy-ui, are incorrectly tagged. Namely topics involving Appcelerator's Alloy framework for the Titanium SDK.
I've attempted to re-tag these questions with moderate success. But was stopped by some who felt my edits were:
This edit is too minor; su...
Okay, I have solved it by changing the getTexture() method to:
ID3D11ShaderResourceView* const* Texture::getTexture() const {
return &mTexture.p; // this is a CComPtr<ID3DShaderResourceView> mTexture;
}
look, he solved it
@thecoshman DX boys have fun ways, don't ya think? ^
I mean if it was T* const* * * const* const* * it would be easy
Similar to a modal window, a modeless window is a feature that was first introduced in Internet Explorer 5. It launches a secondary (child) window that stays active on the user's screen until dismissed. Modeless windows can be minimized or hidden behind other windows. Unlike a modal window, a modeless window will allow the user to continue working with the application while the modeless window is open.
so basically a modeless lounge would be the one that can be minimized and hide behind other rooms
Just FWIW, CreateDialog (which creates a modeless dialog) goes back to at least Windows 2.x (circa 1988). I think it was in Windows 1.0 as well, but no longer have any documentation to check.
@BartekBanachewicz there is no such truth. also "runtime address resolving"? Just name it like it is: other methods (e.g. custom allocators and pseudo pointers, iterators) can sometimes improve locality of reference and thereby improve performance. Profile first. Argue later.
Note: smart pointers can be slower too. As can raw indexes on memory realms optimized for locality of reference (false sharing, anyone?). You see, it depends. It always depends.
@Telkitty猫咪咪 Do you ever pay any real attention to what gets posted here? He's posted about it a number of times (hint: related to ankles/feet, not eyes).
& occasional lower abdomen disconform - doctors never found anything. I don't like to go to the doctors. Sometimes I imagine it is cancer and I would be dead soon. But it always goes away ... for a long time ... before it is back.
@DeadMG Tried to use it once. Don't recall the specifics
@FlorisVelleman Yeah, the cool tracks. Probably sticking to metaprogramming and c++1y (that's all of it... :( still having to choose)). But perhaps a bit of Qt/UI is good for my soul!
ISTR that it used to be possible to download prebuilt versions of Boost, at least for Windows, but their downloads page only seems to list what I'm gonna guess is a source package
@DeadMG Not easily satisfied are you. If you want bleeding edge and IDE hand holding, you're gonna have to do some things yourself :/ Then share it with the rest of us
well I've really been putting off creating useful functionality via command-line instead of having hardcoded stuff, so I figure that this has been a bit overdue anyway
Quick question, if I'm inside a constructor that is populating a container (std::vector) and something throws. What happens? I'd hope that the vector is properly released and all the elements that made it in have their destructors called.
So now the next part. Suppose I'm not using a smart pointer, and I'm just newing objects and passing them in a vector. The way to be exception safe is to throw a try-catch over the loop. Do a catch(...), manually delete all the pointers that got in, and rethrow with throw?
if I have a vector full of strings, and move constructing a string might throw, when I push_back another one, I will pay a MASSIVE extra cost compared to if it could not throw.
@sehe The problem is that, a) having a function that might throw can be vastly more expensive than one that won't throw, even if it never actually does, and b), memory allocation ops are extremely common and necessary in lots of places, so lots of functions might throw when they really won't throw almost all the time
for Wide I am certainly considering having the default allocator terminate if allocation fails.
There is a cost associated with exception handling on some platforms and with certain compilers.
Namely, Visual Studio, when building a 32-bit target, will register a handler in every function that has local variables with non-trivial destructor. Basically, it sets up a try/finally handler.
The...
@DeadMG True. So we need rigorous noexcept(...)-correctness in libraries and our own code...
@rubenvb Copying a structure instead of moving it (see my previous example about std::string- if std::string's move constructor could throw, a vector<std::string> resizing would have to copy it's elements rather than move them).
even the possibility that the moves might throw pessimizes the function massively- even if it never actually does throw.
in fact, did you know that some Standard containers do not have guaranteed noexcept move because some implementations wanted to allocate memory in their move constructor?
not to mention the conceptual problem of bye-bye move-only types.