Giter Club home page Giter Club logo

Comments (5)

galkahana avatar galkahana commented on July 20, 2024

Cheers. So i gather that you would like me to edit the h files? I figure only some of them have that trait. Guess i could do tha. Good idea. Got some stuff im working on now, though, so it might take me a while (i say two weeks). Think you can havr a go?

-------- הודעה מקורית --------
מאת: mgubi [email protected]
תאריך:
אל: galkahana/PDF-Writer [email protected]
נושא: [PDF-Writer] improprer "using namespace std" in header files (#3)

I'm trying to evaluate using PDF-Writer as backend to the TeXmacs (www.texmacs.org) scientific editor, however the fact that the PDF-Writer header fields contains "using namespace std" prevents me to include them into the TeXmacs sources since they do not rely on the C++ standard library and we have a different definition for the string class.

In general is a good idea to avoid using that declaration in header files:

http://www.cplusplus.com/forum/beginner/25538/

Btw, nice library! I look forward to be able to use it to write PDFs inside TeXmacs, we really need a good PDF writing library like that.


Reply to this email directly or view it on GitHub.

from pdf-writer.

mgubi avatar mgubi commented on July 20, 2024

I'm doing just that for my personal use. Do you agree in using explicitly "std::" everywhere? or you would prefer that source files retain the "using namespace std" statement? I would go for the first and more uniform alternative, even if the second can be easier to do.

from pdf-writer.

galkahana avatar galkahana commented on July 20, 2024

First is great. Thats what i want to do. Good luck :). I'll keep in touch in case ill get to this early.

-------- הודעה מקורית --------
מאת: mgubi [email protected]
תאריך:
אל: galkahana/PDF-Writer [email protected]
עותק: gal kahana [email protected]
נושא: Re: [PDF-Writer] improprer "using namespace std" in header files (#3)

I'm doing just that for my personal use. Do you agree in using explicitly "std::" everywhere? or you would prefer that source files retain the "using namespace std" statement? I would go for the first and more uniform alternative, even if the second can be easier to do.


Reply to this email directly or view it on GitHub.

from pdf-writer.

mgubi avatar mgubi commented on July 20, 2024

Ok,
here the patch removing "using namespace std" everywhere. It works for me.

Best
Massimiliano.

On Jan 12, 2013, at 6:44 PM, gal kahana [email protected] wrote:

First is great. Thats what i want to do. Good luck :). I'll keep in touch in case ill get to this early.

-------- הודעה מקורית --------
מאת: mgubi [email protected]
תאריך:
אל: galkahana/PDF-Writer [email protected]
עותק: gal kahana [email protected]
נושא: Re: [PDF-Writer] improprer "using namespace std" in header files (#3)

I'm doing just that for my personal use. Do you agree in using explicitly "std::" everywhere? or you would prefer that source files retain the "using namespace std" statement? I would go for the first and more uniform alternative, even if the second can be easier to do.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

from pdf-writer.

galkahana avatar galkahana commented on July 20, 2024

thanks man. merged with the master branch. great :)

from pdf-writer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.