Comments (2)
Here's the declaration for the insertion operator for unitval
:
inline
std::ostream& operator<<( std::ostream &out, unitval &x ) {
out << x.value( x.units() ) << " " << x.unitsName();
return out;
}
Its second argument is of type unitval&
, so you can't pass it a const unitval because you can't convert a const T
to a T&
. You could fix it either by changing the function to pass the second argument by value or by changing the type of the second argument to const unitval&
(you can convert a T
to a const T&
. Note, however, that to use the latter solution you will have to add the const qualifier to unitval::unitsName()
, since it currently doesn't have it.
Either way, it's an easy fix that could be bundled in with the next merge into the master branch.
from hector.
Fixed in 8b0f437.
from hector.
Related Issues (20)
- Improve fetchvars documenation HOT 1
- Add CH4->CO2 oxidation
- atuo generate fxntable
- Paper to add to Hector publications list HOT 1
- Notes for ms revision
- Permafrost refreeze from soil is disabled
- Replace Dorheim et al. in prep with manuscript information
- Verbosity HOT 1
- Documentation Issues
- Update Hector default parameters in the ini files
- Revision checklist HOT 2
- Potential high latitude comparison
- Outputstream example files
- Values for 1745/1746 HOT 1
- Reference period of Readme figure
- NBP constraint crashes model in some circumstances HOT 2
- Automating X number of ensemble runs with unique parameter values HOT 8
- Reminder: add Matilda to documentation
- Potential issue with SV (vol inputs) HOT 14
- RF scalar effect not reported in respective output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hector.