Fix Linux build and implementations with new systems and C++20 features

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
2024-01-02 00:10:07 -06:00
parent 92ac7e5cf8
commit 5c73ed6cd3
10 changed files with 16 additions and 12 deletions
+3 -2
View File
@@ -30,7 +30,7 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
Portions of this software are copyright © 2023 The FreeType
Portions of this software are copyright � 2023 The FreeType
Project (www.freetype.org). Please see LICENSE_FT.txt for more information.
All rights reserved.
*/
@@ -96,10 +96,11 @@ public:
return get_readOnly(ItemAttribute::Get(a));
}
inline const float&get_readOnly(const ItemAttribute&a)const{
static float DEFAULT=0;
if(attributes.count(a)){
return attributes.at(a);
}
return 0;
return DEFAULT;
}
inline auto begin()const{
return attributes.begin();