|
||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||
| Some recent topics started on our forums | |
| CRTP and dynamic dispatch | I'm working on a set of C++ classes that represent nodes in a tree. I want to be able to traverse that tree and apply logic to each node, basically as a Visitor pattern: template <typename T> void Node::Visit(T& visitor) { visitor... |
| Posted November 20, 2009 10:22:03 AM | |
| Please do not mark threads as "solved" | Please do not mark threads as "solved" when posting in the General Programming forum. Tagging a thread as "solved" tends to discourage further discussion and contributions within a thread. Often there are other perspectives and solutions available, a... |
| Posted November 16, 2009 5:02:21 PM | |
| Beyond profiling | I'm in the process of doing some heavy optimization work on a project, and up until now I've been using a handful of profiling tools to guide the work - the standard hotspot detection and repair approach. However, I've now reached a point whe... |
| Posted July 16, 2009 1:13:16 PM | |
| Virtuality | I'm fairly surprised that nobody has posted on this yet... anyone seen the Virtuality pilot? As much as I loathe the whole "fake TV show about a reality show" construct, I have to admit that the concept of this particular show intrigues me. T... |
| Posted July 2, 2009 11:14:02 AM | |
| RFC: Epoch Programming Language, Release 7 | Hi all, As some of you may or may not be aware, I've been working for quite some time on a programming language designed to address upcoming trends and challenges in both hardware and software technology. (For an in-depth introduction to the... |
| Posted June 14, 2009 7:14:34 PM | |
| Double-check my lock-free voodoo | I've been working on a lockless message passing system for the last couple of days, and finally came up with what seems like a pretty solid implementation. First, some important background: this is designed for a one consumer, multiple p... |
| Posted March 16, 2009 5:03:59 PM | |
| Hardcore Mac development | There was a time in my life where I would have sworn that these words would never pass my lips, but... I'm in the market for a good Mac desktop to do some heavy-duty development on. Unfortunately, I have no idea what the Mac market is like, what... |
| Posted February 28, 2009 1:11:57 PM | |
| Generating PE files | I've been working on a linker app of sorts to convert Epoch programs into Win32 .EXEs. I had everything set up just right once, and it worked as expected; but aside from that, it's utter chaos. And of course I can't remember what I changed. B... |
| Posted February 18, 2009 9:08:25 PM | |
| Recommend me a good 2.1 speaker set | I've been chained to my desk more or less literally by headphone cables for far too long. In my old tiny apartment I used to have a stereo cable that ran from my headphone jack across the room to my nice 5.1 speakers, which I used when I got tired of... |
| Posted January 6, 2009 3:39:11 PM | |
| Assembling the intellectual elite | I've recently adopted the belief that the world would be a far better place if operated solely by a meritocracy of the intellectual elite. In particular, I think replacing the majority of political and bureaucratic machinery with a slimmed-down, prag... |
| Posted November 21, 2008 4:13:48 AM | |
| View All Topics Started By This User | |
| Some recent replies made on our forums | |
| Is Sourceforge what I'm looking for? | Another vote for Google Code [smile] |
| Posted November 20, 2009 4:42:23 PM | |
| CRTP and dynamic dispatch | The visitor call is parameterized so that different node types can respond differently to the visitation/traversal call. For instance: template <class OperationClass> void TraverseNode(const OperationClass& op) { TaskSafetyCheck(op, *thi... |
| Posted November 20, 2009 4:39:11 PM | |
| CRTP and dynamic dispatch | Well, one of the big motivating factors for trying this hideous hack in the first place is that there are quite a few different node classes. The benefit of templating TraverseNode in the final example is that we can automatically generate code... |
| Posted November 20, 2009 1:09:48 PM | |
| Possible for Gamedev.net to host files? | Among other things, the GDNet+ service provides a pretty decent chunk of web hosting space. |
| Posted November 20, 2009 4:33:23 AM | |
| Very strange compile error | Right click on your project in Solution Explorer, select the Properties option, and navigate to C/C++ > Command Line. Copy and paste the contents of the command line here. |
| Posted November 19, 2009 3:25:22 AM | |
| Text File I/O - Random Characters Getting Deleted! | Strange; with that source text file and your code I get the correct, expected results: Esperanza feels lost, alone, feels lost, alone, and lost, alone, and confused. alone, and confused. She and confused. She believes confused. She believes t... |
| Posted November 18, 2009 11:48:39 PM | |
| How can I access ALL emails on a mail server? | Moving to the lounge, as this has pretty much nothing to do with programming. |
| Posted November 18, 2009 12:39:49 PM | |
| C++ version of java interface | Quote:Original post by Concentrate But isn't it bad that a class could potentially look like this : class Object : public Moveable ,public Launchable, public Colorable, ... {/...} Depends on your definition of "bad" I guess [smile] ... |
| Posted November 18, 2009 12:38:13 PM | |
| Dll function pointer managing | I use a hybrid method: I have a DLLAccess class that fetches a table of function pointers in the constructor. The class also wraps the LoadLibrary/FreeLibrary calls. The net effect is that I simply create a DLLAccess instance for the lifetime for whi... |
| Posted November 18, 2009 12:28:30 PM | |
| C++ version of java interface | Quote:Original post by OrangyTang And make sure you include an empty virtual d'tor or you'll potentially get all sorts of odd behaviour: class MyInterface { public: ~MyInterface() {} virtual void doSomething() = 0; virtual void... |
| Posted November 18, 2009 12:24:58 PM | |
| View All Replies Made By This User | |