Skip to content

Instantly share code, notes, and snippets.

@DragonOsman
Last active December 30, 2021 15:54
Show Gist options
  • Select an option

  • Save DragonOsman/62951834c19f6108d4a2d47e45ca65f0 to your computer and use it in GitHub Desktop.

Select an option

Save DragonOsman/62951834c19f6108d4a2d47e45ca65f0 to your computer and use it in GitHub Desktop.
1>E:\programming\visual_studio_2019\Projects\beginningcpp20\chapter10ex3\chapter10ex3\chapter10ex3.cpp(38,15): error C2672: 'plus': no matching overloaded function found
1>E:\programming\visual_studio_2019\Projects\beginningcpp20\chapter10ex3\chapter10ex3\chapter10ex3.cpp(38,15): error C2783: 'ReturnType plus(const T1 *,const T2 *)': could not deduce template argument for 'ReturnType'
1>E:\programming\visual_studio_2019\Projects\beginningcpp20\chapter10ex3\chapter10ex3\chapter10ex3.cpp(22): message : see declaration of 'plus'
1>E:\programming\visual_studio_2019\Projects\beginningcpp20\chapter10ex3\chapter10ex3\chapter10ex3.cpp(38,15): error C2783: 'ReturnType plus(const T1 &,const T2 &)': could not deduce template argument for 'ReturnType'
1>E:\programming\visual_studio_2019\Projects\beginningcpp20\chapter10ex3\chapter10ex3\chapter10ex3.cpp(19): message : see declaration of 'plus'
1>E:\programming\visual_studio_2019\Projects\beginningcpp20\chapter10ex3\chapter10ex3\chapter10ex3.cpp(56,1): error C2397: conversion from 'unsigned __int64' to 'char' requires a narrowing conversion
1>E:\programming\visual_studio_2019\Projects\beginningcpp20\chapter10ex3\chapter10ex3\chapter10ex3.cpp(57,1): error C2664: 'char *strcat(char *,const char *)': cannot convert argument 1 from 'char' to 'char *'
1>E:\programming\visual_studio_2019\Projects\beginningcpp20\chapter10ex3\chapter10ex3\chapter10ex3.cpp(57,14): message : Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\string.h(91,1): message : see declaration of 'strcat'
1>E:\programming\visual_studio_2019\Projects\beginningcpp20\chapter10ex3\chapter10ex3\chapter10ex3.cpp(58,1): error C2664: 'char *strcat(char *,const char *)': cannot convert argument 1 from 'char' to 'char *'
1>E:\programming\visual_studio_2019\Projects\beginningcpp20\chapter10ex3\chapter10ex3\chapter10ex3.cpp(58,14): message : Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\string.h(91,1): message : see declaration of 'strcat'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment