User Profile

Collapse

Profile Sidebar

Collapse
romanize
romanize
Last Activity: Oct 29 '08, 12:28 PM
Joined: Jul 8 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • romanize
    replied to BitBlt trouble.
    in C
    a late response it seems. have you found out where the problem was?
    i remember having similar problems - some years ago though. did you try to createcompatibl edc from the same GetDC?
    r.
    See more | Go to post

    Leave a comment:


  • romanize
    replied to virtual vs. function pointer
    in C
    Similarly, be aware of the many optimizations the hardware takes care of. If you have, say, 10 different objects to intersect with, the referenced locations may end up very close to the processor after several calls, such that there is no - or little - memory overhead.

    As for the keyword register, I'd trust the compiler to do the job.

    Correct, if I'm wrong, please.

    The best thing I to do some benchmarks,...
    See more | Go to post

    Leave a comment:


  • romanize
    replied to virtual vs. function pointer
    in C
    just a - possibly obvious - note:
    "float intersectionTes t(const Ray& r)" may perform better....
    See more | Go to post

    Leave a comment:


  • romanize
    replied to insert_iterator and (x < y)
    in C
    Thank you for the reply, I should have supplied some code. My specific problem was
    set_intersectio n(a.begin(), a.end(), b.begin(), b.end(), std::inserter(c , c.begin()));
    where
    a,b,c are of type std::set<Key,Cu stomCompare>.
    Apparently, std::inserter does not try to use CustomCompare.
    I have implemented an operator< into the definition of Key, which does the job, but -

    Can I not supply CustomCompare...
    See more | Go to post

    Leave a comment:


  • romanize
    started a topic insert_iterator and (x < y)
    in C

    insert_iterator and (x < y)

    Hi. Is it true - and if so, then why - does the STL (i have some some g++ 4.2 under ubuntu) insert_iterator try to use operator< instead of the Compare object specified in the container, e.g. std::set?
    See more | Go to post
No activity results to display
Show More
Working...