aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/D07_PassingByValue.dox
diff options
context:
space:
mode:
Diffstat (limited to 'doc/D07_PassingByValue.dox')
-rw-r--r--doc/D07_PassingByValue.dox4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/D07_PassingByValue.dox b/doc/D07_PassingByValue.dox
index d15b375a6..b1e5e683b 100644
--- a/doc/D07_PassingByValue.dox
+++ b/doc/D07_PassingByValue.dox
@@ -1,10 +1,10 @@
namespace Eigen {
-/** \page PassingByValue Troubleshooting - Passing Eigen objects by value to functions
+/** \page TopicPassingByValue Passing Eigen objects by value to functions
Passing objects by value is almost always a very bad idea in C++, as this means useless copies, and one should pass them by reference instead.
-With Eigen, this is even more important: passing \ref FixedSizeVectorizable "fixed-size vectorizable Eigen objects" by value is not only inefficient, it can be illegal or make your program crash! And the reason is that these Eigen objects have alignment modifiers that aren't respected when they are passed by value.
+With Eigen, this is even more important: passing \ref TopicFixedSizeVectorizable "fixed-size vectorizable Eigen objects" by value is not only inefficient, it can be illegal or make your program crash! And the reason is that these Eigen objects have alignment modifiers that aren't respected when they are passed by value.
So for example, a function like this, where v is passed by value: