Pardon my naivety, but where is line 5 coming from? You're also returning a
C style string when your return value is C++. I'm not sure if there are
constructors to fix that.

Could there also be a conflict with the namespace from using the stylesheet?

I'm really just spit balling here, so sorry if its not helpful.

Kevin

--

Kevin Brightwell
Year 4 Bachelor of Computer Engineering (BESc.)
Year 3 Bachelor of Computer Science (BSc.)
Residence Don - Saugeen-Maitland Hall
Western University www.westernu.ca
e. [email protected] c. 226.678.4927
On 12 Feb 2013 16:26, "Doesnt Stop" <[email protected]> wrote:

> There is no problem with the code.
> #include <iostream>
>
> 1. template< typename T>
> 2. std::string& toString(const T& data){
> 3.   std::stringstream num(std::stringstream::out);
> 4.   num << data;
> 5.   return run.c_str();
> 6. }
>
> However, an error is triggered by line 3. This error started happening as
> soon as I
>
> added the GTKmm property sheet. If I remove the property sheet from the
> project, then
>
> the applicatin compiles without any problem.
> So, the problem is the gtkmm and not VC++ or the IDE in my Win7.
> Is there anyone here having the same problem?
>
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> https://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to