Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
A question about MSVC's <complex> implementation.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Steven Emory, post: 5023255"] A template base class is a pattern that can be used to add some Oh, I see why now... thanks Marcel! So it's so that you can do something like this: typedef struct _fcomplex { float _val[2]; } fcomplex; fcomplex obj; float (&ref)[2] = reinterpret_cast<float(&)[2]>(obj); ref[0] = 1.0f; ref[1] = 2.0f; std::cout << "(" << ref[0] << ", " << ref[1] << ")" << std::endl; [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
A question about MSVC's <complex> implementation.
Top