n00b question :P

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
c@c
Posts: 10
Joined: Sun Mar 28, 2004 8:38 pm

n00b question :P

Post by c@c »

I wonder ... what's the advantage of irr::core::stringw , instead of std::wstring ? Why does irrlicht implements another wstring class ? :oops:

(I said it was a n00b question :P)
darkliquid
Posts: 41
Joined: Sun Nov 09, 2003 10:12 am
Location: UK
Contact:

Post by darkliquid »

I presume its for portability. If people just use the Irrlicht provided types, etc then they have a standard to work with and don't need to worry about the underlying implementation.

irr::core:stringw could, for example on one system map directly to std::wstring but on another operating system or environment, std::wstring might not be available, so another implementation can be written, while maintaining the standard 'irr::core::stringw' interface for developers.
http://www.darkliquid.net - Blog, art, poetry
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

exactly, darkliquid :)
Post Reply