Search:

Type: Posts; User: User Name:

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,056

    I should have noticed that second-pool was the...

    I should have noticed that second-pool was the only target failing. Thanks for pointing it out. I guess the massive wall of text confused me. (The errors I posted were only like 1/2 or 1/3.) I...
  2. Replies
    2
    Views
    2,056

    G++ PGO Blows Up

    I've written a program that finds the order of the max clique in a graph. I'm trying to use profile guided optimizations (PGO) to squeeze a little extra performance out of it, b/c it's pretty maxed...
  3. Replies
    13
    Views
    6,450

    AFAICT, there is use. The theoretical question...

    AFAICT, there is use. The theoretical question stemed from a Clang "error" reported to the mailing list of LLVM. Apparently LLVM inlines functions that obviously have no side effects (like functions...
  4. Replies
    13
    Views
    6,450

    volatile Qualifier on Function

    I had a discussion with someone recently about avoiding unwanted optimization-caused ommition of function calls. I suggested volatile, knowing of its meaning for (normal) variables. But I was told...
  5. Thread: Laziness

    by User Name:
    Replies
    13
    Views
    1,065

    +1 Seriously. Not to be pretentious, but it's...

    +1

    Seriously. Not to be pretentious, but it's like the programming for any problem is a trivial exercise. That's not to say that the relevant underlying theories (math/physics/etc) required to...
  6. Isn't that the point behind inheriting protected?...

    Isn't that the point behind inheriting protected? I'm only asking for finer grained control over the visibility of inherited functions. If all protected or all public are viable options, why isn't...
  7. So something like template...

    So something like

    template<typename T>
    vector<T>::iterator sorted_insert(vector<T> &vec, T &val){
    // do stuff
    }

    Is that what you mean?
  8. [C++11] Delete all parent methods of a given name

    I'm writing a sorted vector implementation and trying to do it as simply as possible.

    Right now, I'm declaring the sorted vector with a protected subclass of vector, then using the "using" keyword...
  9. Replies
    3
    Views
    5,300

    1. Yes, I meant to use && and take advantage of...

    1. Yes, I meant to use && and take advantage of logical short circuiting.

    3. What?! That is stupid beyond belief. Why would they want to limit signals to something less that built-in hardware...
  10. Replies
    3
    Views
    5,300

    SIGCHLD handler not executing dependably

    Hi, I'm trying to figure out how to use a SIGCHLD handler to execute reliably when a child worker process exits for use in larger projects, but this simple test isn't working. Since sigchld++ is...
  11. Replies
    12
    Views
    1,067

    Ew, that's disgusting. :P Clever, though. Now...

    Ew, that's disgusting. :P Clever, though.

    Now that I think about it, I guess the class representing connections between neurons could be a subclass of the type of neurons it is supposed to...
  12. Replies
    12
    Views
    1,067

    I'm not sure what a forward declaration is. I...

    I'm not sure what a forward declaration is. I think you would just put "class B;" before the declaration of A, right? If that's it, it doesn't work either. I still get the error about invalid use of...
  13. Replies
    12
    Views
    1,067

    Okay, I tried using pointers and references. Both...

    Okay, I tried using pointers and references. Both give the same error. Switching the order of the declarations doesn't help.


    class A
    {
    public:
    A(class B *b) : _b(b)
    {
    ...
  14. Replies
    12
    Views
    1,067

    Interdependent Classes

    I have 2 classes that must have members of each other (ie A is a member of B and B a member of A). How do I do this without incomplete type errors?



    class A
    {
    public:
    A(class B &b) :...
  15. I rewrote it without the need of the addends...

    I rewrote it without the need of the addends list, thus fixing a bug at the same time as improving memory efficiency.


    void extend_primes(I n)
    {
    static unsigned int primorial_index = 0;
    ...
  16. Oh, it was even worse than I had thought. :eek:...

    Oh, it was even worse than I had thought. :eek: My prime() function calls extend_primes() and vice versa. "n" wasn't getting corrupted; extend_primes(100) was calling prime() with odd values which...
  17. How to watch stack variable for corruption?

    I have a monster of a function that is corrupting a stack variable (an argument which was passed to the function) somehow. How can I set GDB to watch a local variable?

    Here's my code:


    #define...
  18. Replies
    5
    Views
    842

    Implement an algorithm, in the general form, like...

    Implement an algorithm, in the general form, like they do in <algorithm>, using templates and stuff. (If you don't remember any, implement bubble sort, it's easy). That should get you reacquainted...
  19. Replies
    9
    Views
    2,996

    You can't do that; -y+4 isn't the same as...

    You can't do that; -y+4 isn't the same as (sqrt(4-y))^2, which actually reduced to |4-y|, where || is the absolute value function.
  20. Replies
    2
    Views
    1,288

    I think I've found the root of my problem. I'm...

    I think I've found the root of my problem. I'm using T for the key type of the map when I should be using the type referenced by the iterators I'm using. So, how do I declare a map similar to this:
    ...
  21. Replies
    2
    Views
    1,288

    T is supposed to be any sequence with a forward...

    T is supposed to be any sequence with a forward iterator. My design goals dictate that a string or vector should work.
  22. Replies
    2
    Views
    1,288

    Trie Problems

    I'm trying to implement a trie using a recursive node based method. Each node contains a map of keys mapped to nodes corresponding to that key.

    My problem, right now, is with dealing with the map...
  23. Replies
    5
    Views
    4,515

    Something is very, very wrong. #include...

    Something is very, very wrong.


    #include <iostream>

    int main() {return 0;}

    Gives exactly the same errors.

    It does the same with fstream, so I'm guessing there's a really messed up header...
  24. Replies
    5
    Views
    4,515

    Okay. I tried that, and the errors are the same.

    Okay. I tried that, and the errors are the same.
  25. Replies
    5
    Views
    4,515

    ::wcstold has not been declared.

    I'm getting more than 50 errors relating to standard headers, so something's REALLY messed up.


    /usr/include/c++/4.5/cwchar|249|error: ‘::wcstold’ has not been declared|...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4