#include "point.h"

//point.cpp
void draw_segment( Point from, Point to )
{
    // Draw a line:
    // ...

    // Then reset objects:
    from.reset(); // How safe is this operation?..
    to.reset();
}