Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101548256
swap_2.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 11, 11:58
Size
211 B
Mime Type
text/x-c
Expires
Thu, Feb 13, 11:58 (2 d)
Engine
blob
Format
Raw Data
Handle
24182838
Attached To
rDLMA Diffusion limited mixed aggregation
swap_2.cpp
View Options
#include "../Eigen/Core"
using namespace Eigen;
int main()
{
VectorXf a(10), b(10);
VectorXf const &ac(a);
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
b.swap(ac);
#else
b.swap(ac.const_cast_derived());
#endif
}
Event Timeline
Log In to Comment