Melting and structural transitions