Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: superbonzo

Page 1 of 46 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    25
    Views
    892

    Re: passing smart pointer

    and if you search "java pass by reference" you'll find neverending discussions even more hilarious than ours. Indeed, due to the fact in Java "assignment" ( and parameter initialization ) of...
  2. Replies
    27
    Views
    435

    Re: Is this guaranteed to be correct?

    ... and I have some doubts concerning the portability of the comparison of the so obtained void* in this case ... and even if the code were perfectly legal and guaranteed, I'd be not surprised to...
  3. Replies
    27
    Views
    435

    Re: Is this guaranteed to be correct?

    well, the "make sure all return values are unique", the "add more here" and the "you'll still need to define all the specialisations" parts look like a no-go as far as the OP is concerned. As far as...
  4. Re: A question regarding throwing an exception

    let's rephrase it,

    when an exception is thrown, living automatic (ie stack) objects are destroyed in reverse order ( in a process called "stack unwinding" ); if an exception is thrown from a...
  5. Replies
    27
    Views
    435

    Re: Is this guaranteed to be correct?

    uhm, I'd say no, it will return true instead. The type map machinery in my previous post will exactly compensate for the types reordering ( the composition f1 o f2^-1 as in the example above ).
    ...
  6. Replies
    27
    Views
    435

    Re: Is this guaranteed to be correct?

    a conforming compiler should guarantee that ( as long as some requirements are fullfilled, see post#3 )


    as suggested in post #9, you can avoid the NextUniqueId() function calls, at the cost of...
  7. Replies
    27
    Views
    435

    Re: Is this guaranteed to be correct?

    yes, the only goal of hash_code is to provide a good hash function for unordered containers, that is to provide uniformity and low ( but not zero ) collision probability.

    conversely, type_index (...
  8. Replies
    27
    Views
    435

    Re: Is this guaranteed to be correct?

    the said requirements essentially being having the same tokens and resulting in the same name lookup ( that is true for your use case; pathologies may arise when T-dependent lookups kick in, like,...
  9. Replies
    21
    Views
    968

    Re: vb.net ... why bother?

    wait, I got it it's a joke, like the Chuck-Norris-Facts meme ... now, my turn, ehm ...

    Java makes you feel better
    Java makes you more attractive to the best girls
    Usain Bolt used Java to...
  10. Replies
    2
    Views
    187

    Re: Multi threaded insertion into STL Map

    without synchronization, you'll have race conditions ( = really bad :) ). That said, yes, iterators are not invalidated by insertions, but again, without synchronization anything can happen.
  11. Replies
    27
    Views
    788

    Re: Difficult Algorithm!

    wait, this does not minimize the "total" distance as I got it, but just the maximal distance for each group; @Ceffa93, is the latter that you're looking for ?

    in other words, given village...
  12. Replies
    27
    Views
    788

    Re: Difficult Algorithm!

    this won't give neither an exact solution to the problem nor necessarily make the algorithm scale better ...
  13. Replies
    27
    Views
    788

    Re: Difficult Algorithm!

    yes, that stuff :) ; whether the brute force is sufficient or not is up to you; you can take a look at the wikipedia article about the binomial coefficient ( asymptotics section ) to have some...
  14. Replies
    27
    Views
    788

    Re: Difficult Algorithm!

    well, the problem is equivalent to minimizing the area between the curve given by the (sorted) village positions and the "staircase" curve passing through the hospital positions and their midpoints;...
  15. Replies
    27
    Views
    788

    Re: Difficult Algorithm!

    by "total distance", do you mean the sum of all distances from each village to its nearest hospital, or the maximum such distance ?
  16. Replies
    21
    Views
    968

    Re: vb.net ... why bother?

    ouch, yet another ruzzle-misses-the-point-moment ... silly me that I always get into these discussions ...
  17. Replies
    21
    Views
    968

    Re: vb.net ... why bother?

    because it's just too hard a comparison to be scientifically tested, provided such a thing would actually make sense ( what/how do you measure what ? ). The only "evidence" we have is the avarage...
  18. Replies
    25
    Views
    892

    Re: passing smart pointer

    speaking of sterile back and forth arguments ... :)



    nowhere in the standard the expression "pass by reference" is used, probably because it's a rather useless and ambiguous terminology on its...
  19. Re: Shared Memory to make objects of an application persistent?

    wouldn't be easier to avoid restarting the process altogether? that is, why do you need to restart in the first place ? for example, if you need to restart in order to update some parts of the...
  20. Replies
    3
    Views
    226

    Re: c++ statistics code

    take a look at the boost accumulator library ( and the boost math library for statistics oriented math support ). Moreover, I'm not a fan neither of scripting languages nor of "general purpose"...
  21. Re: Can you think of anything wrong with this code.

    yes, it is, as long as T is not overaligned ( ie, it has stricter alignment than the strictest scalar type ). Note that even in c++11 allocation functions are not required to support overaligned...
  22. Re: Can you think of anything wrong with this code.

    you're right about sizeof(T) being the max alignment, but, unless I'm missing something, I fail to see how object_memory_ is guaranteed to respect T's alignment ( it just implies that there is a...
  23. Replies
    9
    Views
    316

    Re: Worker Thread handle leak

    correct me if I'm missing something, but it looks like it does need suspending instead; the AfxBeginThread docs reads



    IOW, not doing so may result in a thread terminated too early ( unless...
  24. Replies
    52
    Views
    4,365

    Re: IF-free conception.

    wow, that's half a century of free entertainment ! :eek: should we ask for royalties ?
  25. Re: How to interpolate R3->R3 (i mean 3D to 3D) function in Matlab? I have found many

    so, if I understood you correctly, you want to map the remaining 2080-6 points to the the 6-points model space, don't you ?

    this looks like a good candidate for gaussian-like regression, given the...
Results 1 to 25 of 1136
Page 1 of 46 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center