Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

13.5 mistake #60

Open
JerryLmr opened this issue Dec 24, 2023 · 1 comment
Open

13.5 mistake #60

JerryLmr opened this issue Dec 24, 2023 · 1 comment

Comments

@JerryLmr
Copy link

error: conversion from 'const char [6]' to non-scalar type 'HasPtr' requested
HasPtr hp1 = "World";

in the origininal cpp file.

@JerryLmr JerryLmr reopened this Dec 24, 2023
@prasadmangala02
Copy link

We can use HasPtr hp1 = std::string("World"), to correct the mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants