
OK, I found it. Short answer: for some reason running this code from within
the context of a Qt console app breaks it.
Now let me respond to your questions: I using VC 2008 with boost 1.44. I am
also compiling from within the Qt environment.
I did not show all of the code because it wouldn't compile unless you were
working with qt. The real code looked like:
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
// read my_input.txt and save uppercase version of text into
datastore.txt
// code shown in previous email redacted
return a.exec();
}
Commenting-out the line with QCoreApplication and replacing the return
statement with "return 0" made it work. I don't yet understand the problem
but at least I now know that both the example works and I didn't bungle it.
Many thanks for taking the time to look at my problem.
johnh
On Thu, Feb 10, 2011 at 6:48 PM, eg
On 2/8/2011 1:22 PM, John Hendrix wrote:
Hi all,
the following, as far as I can tell, is exactly the same "Ordinary
OutputFilter" example shown at (http://tinyurl.com/45bur3o)
...
I am obviously doing not adding the toupper_filter into the filter chain correctly. Can anyone point out what I am doing wrong?
Not sure what you are doing... but your code works for me on Windows with VS2008 using Boost 1.45.
My_input.txt contained 1 line as follows: ThIs Is A tEsT 123!
After running, datastore.txt contained: THIS IS A TEST 123!
What version of boost, what compiler, what input and output do you get?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Join us at at Tampa Bay's largest Tax Day Tea Party: www.TaxDayTampaBay.com Revolution is Brewing--America Rising www.Tampa-Tea-Party.com