¡@

Home 

c++ Programming Glossary: hacky

Specializing C++ template based on presence/absense of a class member?

http://stackoverflow.com/questions/10354774/specializing-c-template-based-on-presence-absense-of-a-class-member

came up with the following C 11 solution. Man is it hacky but at least it's short. template class T constexpr typename..

How to profile pthread mutex in linux?

http://stackoverflow.com/questions/10852637/how-to-profile-pthread-mutex-in-linux

mutex I would really like to avoid having to do something hacky like taking the time before and after each lock. PS What's the..

Why isn't std::initializer_list a language built-in?

http://stackoverflow.com/questions/15198807/why-isnt-stdinitializer-list-a-language-built-in

by the compiler. At first thought this solution is quite hacky . Is this the way new additions to the C language will be now.. I don't think the absence of a keyword makes it more hacky . Slightly more surprising perhaps but remember that the objective..

C++ Dll Injection

http://stackoverflow.com/questions/1777526/c-dll-injection

file path from steps 1 and 2 as the argument. That's a bit hacky to be honest but if you are injecting a DLL you're already being.. but if you are injecting a DLL you're already being quite hacky. Another technique would be to use steps 1 2 to load some machine..

How can a C++ base class determine at runtime if a method has been overridden?

http://stackoverflow.com/questions/1801949/how-can-a-c-base-class-determine-at-runtime-if-a-method-has-been-overridden

after all it will be in this vtable . Is there any non hacky way of fixing this code class MyClass public typedef void MyClass..

Finite State Machine parser

http://stackoverflow.com/questions/3085070/finite-state-machine-parser

scopes within scopes ... ... ... or would that need hacky implementations Here's the draft states I have in mind upper.. from the grammar. In this way adding a stack isn't hacky . This Wikipedia article also describes how to construct the..

Is it safe to use STL (TR1) shared_ptr's between modules (exes and dlls)

http://stackoverflow.com/questions/345003/is-it-safe-to-use-stl-tr1-shared-ptrs-between-modules-exes-and-dlls

this in the class itself . If this all seems a little hacky I'm using this for unit testing. If you've ever tried to unit..

Creating a counter that stays synchronized across MPI processes

http://stackoverflow.com/questions/4948788/creating-a-counter-that-stays-synchronized-across-mpi-processes

enough you may not need to go there. Update Ok so here's a hacky attempt at doing the shared counter my version of the simple..

“enum class” emulation or solid alternative for MSVC 10.0

http://stackoverflow.com/questions/4980280/enum-class-emulation-or-solid-alternative-for-msvc-10-0

or solid alternative for MSVC 10.0 I'm looking for a hacky kind of solution to the following problem GCC 4.4 accepts the..

How do I get the HMODULE for the currently executing code?

http://stackoverflow.com/questions/557081/how-do-i-get-the-hmodule-for-the-currently-executing-code

Is there a better way to do this that doesn't look so hacky Note The purpose of this is to load some Win32 resources that..

Fastest way to find the number of lines in a text (C++)

http://stackoverflow.com/questions/843154/fastest-way-to-find-the-number-of-lines-in-a-text-c

both ifstream and fgets . They were both slow . Is there a hacky way to do this which is also used by for instance BSD Linux..