If you're using c++17 or later you can now make use of std::as_const
Class var; int main() { const double defaultAmount = [&varLocal = std::as_const(var)]{ /*ToDo*/ }(); }