Hi Gavin,

[
If you rename the .i file as a .cpp you can then add it to your project and right-click-Compile it individually.  If it still shows the original line numbers then generate the .i file again but turn on the "Preprocess Suppress Line Numbers" setting as well.
]
I will definitely try this right away and let you know.

[
Since this is C++11 code, let's go back to basics for a moment.  Exactly *which* version of Visual Studio are you using?
]
I am NOT using C++11. I am using Visual Studio 2005,
Inline image 1


[
Also which Boost version you're using too.
]
I am using boost_1_61_0.

Thanks,
Ram