• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

c++ is retarded

Deeko

Lifer
LinkedList<Mail> *ptr1 = Mail1->get_previous_node();
LinkedList<Mail> *ptr2 = Mail2->get_previous_node();

if(ptr1 != Mail2 && ptr2 != Mail1)
{
if(ptr1 != NULL)
ptr1->link(Mail2);

in a list where Mail1 is the first...thus ptr1 being NULL...it works fine right up until that last if statement. How does the line
if(ptr1 != NULL)
change ptr1 to point at Mail2 instead????
 
Can you show the implementation of the template please? From what I can see it looks obvious, but it's hard to say without seeing the impl.
 
Back
Top