# spacing before scope resolution operator [closed]

I'm new to LaTeX and I have encountered a problem with the listings package, I have a space before the :: operator of C++ .

after reading lstlisting with c++: spaces around scope resolution operator I added columns=fullflexible but it doesn't solve the problem.

here are my settings :

\usepackage{listings}
\lstset{basicstyle=\ttfamily,
frame=lrtb ,
columns=fullflexible
}

-
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  egreg Mar 25 '13 at 21:11