]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/units/example/kitchen_sink.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / units / example / kitchen_sink.cpp
index 211d981931367e41e4a538904242fa7e2ba27acc..ece126bc2d77fa93c11eaed3c90fa94856fa97fb 100644 (file)
@@ -200,6 +200,7 @@ namespace units {
 //[kitchen_sink_function_snippet_3
 /// the physical definition of work - computed for an arbitrary unit system 
 template<class System,class Y>
+constexpr
 quantity<unit<energy_dimension,System>,Y> 
 work(quantity<unit<force_dimension,System>,Y> F,
      quantity<unit<length_dimension,System>,Y> dx)
@@ -211,6 +212,7 @@ work(quantity<unit<force_dimension,System>,Y> F,
 //[kitchen_sink_function_snippet_4
 /// the ideal gas law in si units
 template<class Y>
+constexpr
 quantity<si::amount,Y> 
 idealGasLaw(const quantity<si::pressure,Y>& P,
             const quantity<si::volume,Y>& V,