How can I draw a previously named path in TikZ?
\documentclass[tikz]{standalone}
\usetikzlibrary{intersections}
\begin{document}
\begin{tikzpicture}
\path[name path=mypath] (0,0) -- (5,5);
%\draw[use path=mypath]; % This does not work
%\path[mypath, draw]; % This does not work
\end{tikzpicture}
\end{document}
The answer given here has a macro for use path
option. Is there a solution within TikZ?