On 11/27/2016 01:48 PM, RAJAT ARORA wrote:

That worked but I am not sure why a reference didn't work but a const.
reference did.

C++ says that you can convert an argument from one type to another if a function takes a const-reference, but not if the function takes a non-const reference. It's a slightly involved situation, but makes perfect sense from a language design perspective.

Best
 W.


--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to