Skip to content

Commit 0541f3a

Browse files
author
izenynn
committed
chore: add comment of syntax without typedef
1 parent 7863b64 commit 0541f3a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

cpp-module-01/ex05/Karen.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: dpoveda- <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2022/02/15 14:14:42 by dpoveda- #+# #+# */
9-
/* Updated: 2022/02/15 15:13:00 by dpoveda- ### ########.fr */
9+
/* Updated: 2022/02/17 22:25:11 by dpoveda- ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -28,7 +28,8 @@ void Karen::complain(std::string level) {
2828
"ERROR"
2929
};
3030

31-
f functions[kLevels] = {
31+
//void (Karen::*functions[4])() = {
32+
f functions[kLevels] = { // f is a typedef in Karen.hpp
3233
&Karen::debug,
3334
&Karen::info,
3435
&Karen::warning,

cpp-module-01/ex06/Karen.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: dpoveda- <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2022/02/15 14:14:42 by dpoveda- #+# #+# */
9-
/* Updated: 2022/02/15 15:55:54 by dpoveda- ### ########.fr */
9+
/* Updated: 2022/02/17 22:25:13 by dpoveda- ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -29,7 +29,8 @@ void Karen::complain(std::string level) {
2929
"ERROR"
3030
};
3131

32-
f functions[kLevels] = {
32+
//void (Karen::*functions[4])() = {
33+
f functions[kLevels] = { // f is a typedef in Karen.hpp
3334
&Karen::debug,
3435
&Karen::info,
3536
&Karen::warning,

0 commit comments

Comments
 (0)